function ExecutablePluginBase::getConfigDefinitions
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Executable/ExecutablePluginBase.php \Drupal\Core\Executable\ExecutablePluginBase::getConfigDefinitions()
- 10 core/lib/Drupal/Core/Executable/ExecutablePluginBase.php \Drupal\Core\Executable\ExecutablePluginBase::getConfigDefinitions()
- 11.x core/lib/Drupal/Core/Executable/ExecutablePluginBase.php \Drupal\Core\Executable\ExecutablePluginBase::getConfigDefinitions()
Gets an array of definitions of available configuration options.
@todo: This needs to go into an interface.
Return value
\Drupal\Core\TypedData\DataDefinitionInterface[] An array of typed data definitions describing available configuration options, keyed by option name.
File
-
core/
lib/ Drupal/ Core/ Executable/ ExecutablePluginBase.php, line 27
Class
- ExecutablePluginBase
- Provides the basic architecture for executable plugins.
Namespace
Drupal\Core\ExecutableCode
public function getConfigDefinitions() {
$definition = $this->getPluginDefinition();
if (!empty($definition['configuration'])) {
return $definition['configuration'];
}
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.