TypedConfigManager::getDefinition

public TypedConfigManager::getDefinition($base_plugin_id, $exception_on_invalid = TRUE)

Gets a specific plugin definition.

Parameters

string $plugin_id: A plugin id.

bool $exception_on_invalid: (optional) If TRUE, an invalid plugin ID will throw an exception.

Return value

mixed A plugin definition, or NULL if the plugin ID is invalid and $exception_on_invalid is FALSE.

Throws

\Drupal\Component\Plugin\Exception\PluginNotFoundException Thrown if $plugin_id is invalid and $exception_on_invalid is TRUE.

Overrides DiscoveryCachedTrait::getDefinition

File

core/lib/Drupal/Core/Config/TypedConfigManager.php, line 189

Class

TypedConfigManager
Manages config schema type plugins.

Namespace

Drupal\Core\Config

Code

public function getDefinition($base_plugin_id, $exception_on_invalid = TRUE) {
  return $this->getDefinitionWithReplacements($base_plugin_id, [], $exception_on_invalid);
}
doc_Drupal
2016-10-29 09:49:55
Comments
Leave a Comment

Please login to continue.