You are here

public function TagSet::getPluginCollection in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x src/Entity/TagSet.php \Drupal\xbbcode\Entity\TagSet::getPluginCollection()

Get the plugin collection.

Return value

\Drupal\xbbcode\TagPluginCollection The plugin collection.

Overrides TagSetInterface::getPluginCollection

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

File

src/Entity/TagSet.php, line 72

Class

TagSet
Represents a set of configured tags.

Namespace

Drupal\xbbcode\Entity

Code

public function getPluginCollection() : TagPluginCollection {
  if (!$this->pluginCollection) {
    $pluginManager = Drupal::service('plugin.manager.xbbcode');
    $this->pluginCollection = new TagPluginCollection($pluginManager, $this
      ->getTags());
  }
  return $this->pluginCollection;
}