8.5.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinitions()
8.0.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinitions()
8.1.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinitions()
8.2.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinitions()
8.3.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinitions()
8.4.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinitions()
8.6.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinitions()

Gets an array of definitions of available configuration options.

@todo: This needs to go into an interface.

Return value

array An array of typed data definitions describing available configuration options, keyed by option name.

File

core/lib/Drupal/Core/Executable/ExecutablePluginBase.php, line 22

Class

ExecutablePluginBase
Provides the basic architecture for executable plugins.

Namespace

Drupal\Core\Executable

Code

public function getConfigDefinitions() {
  $definition = $this
    ->getPluginDefinition();
  if (!empty($definition['configuration'])) {
    return $definition['configuration'];
  }
  return [];
}