You are here

protected function MediaBundle::typePluginCollection in Media entity 8

Returns type lazy plugin collection.

Return value

\Drupal\Core\Plugin\DefaultSingleLazyPluginCollection The tag plugin collection.

1 call to MediaBundle::typePluginCollection()
MediaBundle::getPluginCollections in src/Entity/MediaBundle.php
Gets the plugin collections used by this object.

File

src/Entity/MediaBundle.php, line 216

Class

MediaBundle
Defines the Media bundle configuration entity.

Namespace

Drupal\media_entity\Entity

Code

protected function typePluginCollection() {
  if (!$this->typePluginCollection) {
    $this->typePluginCollection = new DefaultSingleLazyPluginCollection(\Drupal::service('plugin.manager.media_entity.type'), $this->type, $this->type_configuration);
  }
  return $this->typePluginCollection;
}