You are here

public function MediaBundle::getType in Media entity 8

Returns the media type plugin.

Return value

\Drupal\media_entity\MediaTypeInterface The type.

Overrides MediaBundleInterface::getType

File

src/Entity/MediaBundle.php, line 206

Class

MediaBundle
Defines the Media bundle configuration entity.

Namespace

Drupal\media_entity\Entity

Code

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