You are here

public function Resource::getTitle in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::getTitle()

Returns the title of the resource.

Return value

string|null The title of the resource, if known.

File

core/modules/media/src/OEmbed/Resource.php, line 375

Class

Resource
Value object representing an oEmbed resource.

Namespace

Drupal\media\OEmbed

Code

public function getTitle() {
  return $this->title;
}