public function Resource::getAuthorUrl in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::getAuthorUrl()
- 9 core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::getAuthorUrl()
Returns the URL of the resource author.
Return value
\Drupal\Core\Url|null The absolute URL of the resource author, or NULL if none is provided.
File
- core/
modules/ media/ src/ OEmbed/ Resource.php, line 395
Class
- Resource
- Value object representing an oEmbed resource.
Namespace
Drupal\media\OEmbedCode
public function getAuthorUrl() {
return $this->authorUrl ? Url::fromUri($this->authorUrl)
->setAbsolute() : NULL;
}