public function InstallablePluginBase::getConfiguration in Markdown 8.2
Gets this plugin's configuration.
Return value
array An array of this plugin's configuration.
Overrides AnnotatedPluginBase::getConfiguration
3 calls to InstallablePluginBase::getConfiguration()
- BaseExtension::getConfiguration in src/
Plugin/ Markdown/ BaseExtension.php - Gets this plugin's configuration.
- BaseParser::getConfiguration in src/
Plugin/ Markdown/ BaseParser.php - Gets this plugin's configuration.
- InstallablePluginBase::getSortedConfiguration in src/
Plugin/ Markdown/ InstallablePluginBase.php - Retrieves the configuration for the plugin, but sorted.
4 methods override InstallablePluginBase::getConfiguration()
- BaseExtension::getConfiguration in src/
Plugin/ Markdown/ BaseExtension.php - Gets this plugin's configuration.
- BaseParser::getConfiguration in src/
Plugin/ Markdown/ BaseParser.php - Gets this plugin's configuration.
- MissingExtension::getConfiguration in src/
Plugin/ Markdown/ MissingExtension.php - Gets this plugin's configuration.
- MissingParser::getConfiguration in src/
Plugin/ Markdown/ MissingParser.php - Gets this plugin's configuration.
File
- src/
Plugin/ Markdown/ InstallablePluginBase.php, line 151
Class
- InstallablePluginBase
- Base class for installable plugins.
Namespace
Drupal\markdown\Plugin\MarkdownCode
public function getConfiguration() {
$configuration = parent::getConfiguration();
$configuration['dependencies'] = $this
->getPluginDependencies($this);
if ($this instanceof EnabledPluginInterface) {
$configuration['enabled'] = $this
->isEnabled();
}
if ($this instanceof SettingsInterface) {
// Only return settings that have changed from the default values.
$configuration['settings'] = $this
->getSettingOverrides();
}
return $configuration;
}