8.5.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinition($key)
8.0.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinition($key)
8.1.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinition($key)
8.2.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinition($key)
8.3.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinition($key)
8.4.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinition($key)
8.6.x ExecutablePluginBase.php ExecutablePluginBase::getConfigDefinition($key)

Gets the definition of a configuration option.

@todo: This needs to go into an interface.

Return value

array The typed data definition describing the configuration option, or FALSE if the option does not exist.

File

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

Class

ExecutablePluginBase
Provides the basic architecture for executable plugins.

Namespace

Drupal\Core\Executable

Code

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