protected Sequence::getElementDefinition($key)
Gets data definition object for contained element.
int|string $key: Property name or index of the element.
\Drupal\Core\TypedData\DataDefinitionInterface
Overrides ArrayElement::getElementDefinition
protected function getElementDefinition($key) { $value = isset($this->value[$key]) ? $this->value[$key] : NULL; // @todo: Remove BC layer for sequence with hyphen in front. https://www.drupal.org/node/2444979 $definition = array(); if (isset($this->definition['sequence'][0])) { $definition = $this->definition['sequence'][0]; } elseif ($this->definition['sequence']) { $definition = $this->definition['sequence']; } return $this->buildDataDefinition($definition, $value, $key); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Schema!Sequence.php/function/Sequence::getElementDefinition/8.1.x