You are here

public function TypedConfigManager::getDefinition in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Config/TypedConfigManager.php \Drupal\Core\Config\TypedConfigManager::getDefinition()

Gets a specific plugin definition.

Parameters

string $plugin_id: A plugin id.

bool $exception_on_invalid: Ignored with TypedConfigManagerInterface. Kept for compatibility with DiscoveryInterface.

Return value

array A plugin definition array. If the given plugin id does not have typed configuration definition assigned, the definition of an undefined element type is returned.

Overrides DiscoveryCachedTrait::getDefinition

3 calls to TypedConfigManager::getDefinition()
TypedConfigManager::createFromNameAndData in core/lib/Drupal/Core/Config/TypedConfigManager.php
Gets typed data for a given configuration name and its values.
TypedConfigManager::getDefinitionWithReplacements in core/lib/Drupal/Core/Config/TypedConfigManager.php
Gets a schema definition with replacements for dynamic names.
TypedConfigManager::hasConfigSchema in core/lib/Drupal/Core/Config/TypedConfigManager.php
Checks if the configuration schema with the given config name exists.

File

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

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