public function ExecutablePluginBase::getConfigDefinition

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.

1 call to ExecutablePluginBase::getConfigDefinition()
ExecutablePluginBase::setConfig in drupal/core/lib/Drupal/Core/Executable/ExecutablePluginBase.php
Sets the value of a particular configuration option.

File

drupal/core/lib/Drupal/Core/Executable/ExecutablePluginBase.php, line 60
Contains \Drupal\Core\Executable\ExecutablePluginBase.

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;
}