Mapping::getElementDefinition

protected Mapping::getElementDefinition($key) Gets data definition object for contained element. Parameters int|string $key: Property name or index of the element. Return value \Drupal\Core\TypedData\DataDefinitionInterface Overrides ArrayElement::getElementDefinition File core/lib/Drupal/Core/Config/Schema/Mapping.php, line 23 Class Mapping Defines a mapping configuration element. Namespace Drupal\Core\Config\Schema Code protected function getElementDefinition($key) { $value = iss

Mapping

Defines a mapping configuration element. This object may contain any number and type of nested properties and each property key may have its own definition in the 'mapping' property of the configuration schema. Properties in the configuration value that are not defined in the mapping will get the 'undefined' data type. Read https://www.drupal.org/node/1905070 for more details about configuration schema, types and type resolution. Hierarchy class \Drupal\Core\TypedData\TypedData implements Plugi

MappedDiff::__construct

public MappedDiff::__construct($from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines) Constructor. Computes diff between sequences of strings. This can be used to compute things like case-insensitive diffs, or diffs which ignore changes in white-space. Parameters $from_lines array An array of strings.: (Typically these are lines from a file.) $to_lines array An array of strings.: $mapped_from_lines array This array should: have the same size number of elements as $from_lines. The elemen

MappedDiff

FIXME: bad name. @todo document @private @subpackage DifferenceEngine Hierarchy class \Drupal\Component\Diff\Diffclass \Drupal\Component\Diff\MappedDiff File core/lib/Drupal/Component/Diff/MappedDiff.php, line 11 Namespace Drupal\Component\Diff Members Name Modifiers Type Description Diff::$edits protected property The list of differences as an array of diff operations. Diff::check public function Check a Diff for validity. Diff::closing public function

MapDataDefinition::setPropertyDefinition

public MapDataDefinition::setPropertyDefinition($name, DataDefinitionInterface $definition = NULL) Sets the definition of a map property. Parameters string $name: The name of the property to define. \Drupal\Core\TypedData\DataDefinitionInterface|null $definition: (optional) The property definition to set, or NULL to unset it. Return value $this File core/lib/Drupal/Core/TypedData/MapDataDefinition.php, line 57 Class MapDataDefinition A typed data definition class for defining maps. Nam

MapDataDefinition::setMainPropertyName

public MapDataDefinition::setMainPropertyName($name) Sets the main property name. Parameters string|null $name: The name of the main property, or NULL if there is none. Return value $this File core/lib/Drupal/Core/TypedData/MapDataDefinition.php, line 82 Class MapDataDefinition A typed data definition class for defining maps. Namespace Drupal\Core\TypedData Code public function setMainPropertyName($name) { $this->mainPropertyName = $name; return $this; }

MapDataDefinition::getPropertyDefinitions

public MapDataDefinition::getPropertyDefinitions() Gets an array of property definitions of contained properties. Return value \Drupal\Core\TypedData\DataDefinitionInterface[] An array of property definitions of contained properties, keyed by property name. Overrides ComplexDataDefinitionBase::getPropertyDefinitions File core/lib/Drupal/Core/TypedData/MapDataDefinition.php, line 40 Class MapDataDefinition A typed data definition class for defining maps. Namespace Drupal\Core\TypedData

MapDataDefinition::getMainPropertyName

public MapDataDefinition::getMainPropertyName() Returns the name of the main property, if any. Some field items consist mainly of one main property, e.g. the value of a text field or the target_id of an entity reference. If the field item has no main property, the method returns NULL. Return value string|null The name of the value property, or NULL if there is none. Overrides ComplexDataDefinitionBase::getMainPropertyName File core/lib/Drupal/Core/TypedData/MapDataDefinition.php, line 70

MapDataDefinition::createFromDataType

public static MapDataDefinition::createFromDataType($data_type) Creates a new data definition object. This method is typically used by \Drupal\Core\TypedData\TypedDataManager::createDataDefinition() to build a definition object for an arbitrary data type. When the definition class is known, it is recommended to directly use the static create() method on that class instead; e.g.: $map_definition = \Drupal\Core\TypedData\MapDataDefinition::create(); Parameters string $data_type: The data type

MapDataDefinition::create

public static MapDataDefinition::create($type = 'map') Creates a new map definition. Parameters string $type: (optional) The data type of the map. Defaults to 'map'. Return value static Overrides DataDefinition::create File core/lib/Drupal/Core/TypedData/MapDataDefinition.php, line 25 Class MapDataDefinition A typed data definition class for defining maps. Namespace Drupal\Core\TypedData Code public static function create($type = 'map') { $definition['type'] = $type; return new s