Commit 93780970 authored by catch's avatar catch

Issue #2462889 by tim.plunkett: Remove...

Issue #2462889 by tim.plunkett: Remove TypedConfigManagerInterface::getDefinition()'s $is_config_name before Drupal 8.0.0
parent 40d6c147
...@@ -116,7 +116,7 @@ public function buildDataDefinition(array $definition, $value, $name = NULL, $pa ...@@ -116,7 +116,7 @@ public function buildDataDefinition(array $definition, $value, $name = NULL, $pa
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function getDefinition($base_plugin_id, $exception_on_invalid = TRUE, $is_config_name = FALSE) { public function getDefinition($base_plugin_id, $exception_on_invalid = TRUE) {
$definitions = $this->getDefinitions(); $definitions = $this->getDefinitions();
if (isset($definitions[$base_plugin_id])) { if (isset($definitions[$base_plugin_id])) {
$type = $base_plugin_id; $type = $base_plugin_id;
...@@ -145,14 +145,6 @@ public function getDefinition($base_plugin_id, $exception_on_invalid = TRUE, $is ...@@ -145,14 +145,6 @@ public function getDefinition($base_plugin_id, $exception_on_invalid = TRUE, $is
'definition_class' => '\Drupal\Core\TypedData\DataDefinition', 'definition_class' => '\Drupal\Core\TypedData\DataDefinition',
'type' => $type, 'type' => $type,
); );
// If this is definition expected for a config name and it is defined as a
// mapping, add a langcode element if not already present.
if ($is_config_name && isset($definition['mapping']) && !isset($definition['mapping']['langcode'])) {
$definition['mapping']['langcode'] = array(
'type' => 'string',
'label' => 'Language code',
);
}
return $definition; return $definition;
} }
......
...@@ -110,16 +110,12 @@ public function hasConfigSchema($name); ...@@ -110,16 +110,12 @@ public function hasConfigSchema($name);
* @param bool $exception_on_invalid * @param bool $exception_on_invalid
* Ignored with TypedConfigManagerInterface. Kept for compatibility with * Ignored with TypedConfigManagerInterface. Kept for compatibility with
* DiscoveryInterface. * DiscoveryInterface.
* @param bool $is_config_name
* (deprecated) Set to TRUE if $plugin_id is a configuration name (as
* opposed to an internal configuration schema type).
* *
* @return array * @return array
* A plugin definition array. If the given plugin id does not have typed * A plugin definition array. If the given plugin id does not have typed
* configuration definition assigned, the definition of an undefined * configuration definition assigned, the definition of an undefined
* element type is returned. If $is_config_name is set, a langcode key * element type is returned.
* is automatically added to the definition.
*/ */
public function getDefinition($plugin_id, $exception_on_invalid = TRUE, $is_config_name = FALSE); public function getDefinition($plugin_id, $exception_on_invalid = TRUE);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment