function Resource::getType

Same name in other branches
  1. 9 core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::getType()
  2. 10 core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::getType()
  3. 11.x core/modules/media/src/OEmbed/Resource.php \Drupal\media\OEmbed\Resource::getType()

Returns the resource type.

Return value

string The resource type. Will be one of the self::TYPE_* constants.

File

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

Class

Resource
Value object representing an oEmbed resource.

Namespace

Drupal\media\OEmbed

Code

public function getType() {
    return $this->type;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.