19declare(strict_types=1);
36 return new Audio($audio_url, $mime_type);
42 ?
string $aria_label =
null,
46 return new
Image($image_url, $mime_type, $aria_label, $width, $height);
55 return new
Video($video_url, $mime_type, $width, $height);
67 ?
string $website_name =
null,
68 ?
string $description =
null,
69 ?
string $default_locale =
null,
70 array $alternative_locales = [],
71 array $additional_resources = [],
74 new
Text(
'og:type',
'website'),
75 new
Text(
'og:title', $object_title),
76 new
Link(
'og:url', $canonical_url),
78 (null !== $website_name) ? new
Text(
'og:site_title', $website_name) : new
NullTag(),
79 (null !== $description) ? new
Text(
'og:description', $description) : new
NullTag(),
80 (null !== $default_locale) ? new
Text(
'og:locale', $default_locale) : new
NullTag(),
81 $this->getAlternativeLocalesTag($alternative_locales),
82 ($this->checkAdditionalResources($additional_resources)) ? new
TagCollection(
83 ...$additional_resources
93 if (empty($locales)) {
97 $alternative_language_tags = [];
98 foreach ($locales as $locale) {
99 $alternative_language_tags[] =
new Text(
'og:locale:alternative', $locale);
108 if (!$resource instanceof
Resource) {
109 throw new \LogicException(
111 "Expected array of %s but received %s.",
The scope of this class is split ilias-conform URI's into components.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...