You are here

public function TagPluginBase::defaultConfiguration in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x src/Plugin/TagPluginBase.php \Drupal\xbbcode\Plugin\TagPluginBase::defaultConfiguration()

Get default plugin configuration from definition.

Return value

array Default plugin configuration.

File

src/Plugin/TagPluginBase.php, line 96

Class

TagPluginBase
Provides a base class for XBBCode tag plugins.

Namespace

Drupal\xbbcode\Plugin

Code

public function defaultConfiguration() : array {
  return [
    'name' => $this->pluginDefinition['name'],
    'settings' => $this->pluginDefinition['settings'],
  ];
}