public function AnnotatedPluginBase::setConfiguration in Markdown 8.2
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides ConfigurableInterface::setConfiguration
2 calls to AnnotatedPluginBase::setConfiguration()
- AnnotatedPluginBase::__construct in src/
Plugin/ Markdown/ AnnotatedPluginBase.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
- InstallablePluginBase::setConfiguration in src/
Plugin/ Markdown/ InstallablePluginBase.php - Sets the configuration for this plugin instance.
1 method overrides AnnotatedPluginBase::setConfiguration()
- InstallablePluginBase::setConfiguration in src/
Plugin/ Markdown/ InstallablePluginBase.php - Sets the configuration for this plugin instance.
File
- src/
Plugin/ Markdown/ AnnotatedPluginBase.php, line 118
Class
- AnnotatedPluginBase
- Base class for annotated plugins.
Namespace
Drupal\markdown\Plugin\MarkdownCode
public function setConfiguration(array $configuration) {
// Filter out NULL values, they will be provided by default configuration.
$configuration = array_filter($configuration, function ($value) {
return $value !== NULL;
});
$this->configuration = $configuration + $this
->defaultConfiguration();
}