public function TagPluginManager::getDefaultCollection in Extensible BBCode 8.3
Same name and namespace in other branches
- 4.0.x 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 114
Class
- TagPluginManager
- Manages BBCode tags.
Namespace
Drupal\xbbcodeCode
public function getDefaultCollection() : TagPluginCollection {
if (!$this->defaultCollection) {
$configurations = $this
->getDefaultConfiguration();
$this->defaultCollection = new TagPluginCollection($this, $configurations);
}
return $this->defaultCollection;
}