'ui-image', ]; public array $options = [ 'tag-type' => "single", ]; public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token, array $options = []) : string { return "buildHtml($arguments) ?>"; } public function buildHtml(string $source, array $attributes = [], array $options = []) : string { if ($options) { $this->options += $options; } if ($attributes['class'] ?? false) { $attributes['class'] .= " {$this->attributes['class']}"; unset($this->attributes['class']); } $this->attributes([ 'src' => $source ] + $attributes + $this->attributes + $this->objectAttribute()); return $this->render(); } protected function objectAttribute() : array { return []; } }