19declare(strict_types=1);
75 public function addCss(
string $path,
string $media = self::MEDIA_SCREEN): void
77 $this->css->addItem(
new Css(
$path, $this->resource_version, $media));
80 public function addJs(
string $path,
bool $add_version_number =
false,
int $batch = 2): void
82 $this->js->addItem(
new Js(
$path, $this->resource_version, $add_version_number, $batch));
85 public function addInlineCss(
string $content,
string $media = self::MEDIA_SCREEN): void
87 $this->inline_css->addItem(
new InlineCss($content, $this->resource_version, $media));
92 $this->on_load_code->addItem(
new OnLoadCode($content, $this->resource_version, $batch));
143 throw new \InvalidArgumentException(
'$text_direction MUST be Standard::LTR, or Standard::RTL');
MetaDataCollection $meta_data
addJs(string $path, bool $add_version_number=false, int $batch=2)
addMetaDatum(string $key, string $value)
setTextDirection(string $text_direction)
__construct(string $resource_version)
setBaseURL(string $base_url)
addOnloadCode(string $content, int $batch=2)
addCss(string $path, string $media=self::MEDIA_SCREEN)
OnLoadCodeCollection $on_load_code
addInlineCss(string $content, string $media=self::MEDIA_SCREEN)
InlineCssCollection $inline_css
Class MetaDataCollection.
Class MetaDataCollection.