Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Resource.php

function 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\OEmbed

Code

public function getAuthorUrl() {
    return $this->authorUrl ? Url::fromUri($this->authorUrl)
        ->setAbsolute() : NULL;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal