You are here

public function TagPluginManager::getDefaultCollection in Extensible BBCode 4.0.x

Same name and namespace in other branches
  1. 8.3 src/TagPluginManager.php \Drupal\xbbcode\TagPluginManager::getDefaultCollection()

Create a plugin collection based on all available plugins.

If multiple plugins use the same default name, the last one will be used.

Return value

\Drupal\xbbcode\TagPluginCollection The plugin collection.

File

src/TagPluginManager.php, line 113

Class

TagPluginManager
Manages BBCode tags.

Namespace

Drupal\xbbcode

Code

public function getDefaultCollection() : TagPluginCollection {
  if (!$this->defaultCollection) {
    $configurations = $this
      ->getDefaultConfiguration();
    $this->defaultCollection = new TagPluginCollection($this, $configurations);
  }
  return $this->defaultCollection;
}