3 namespace Drupal\Core\Config\Schema;
6 * Defines a configuration element of type Sequence.
8 * This object may contain any number and type of nested elements that share
9 * a common definition in the 'sequence' property of the configuration schema.
11 * Read https://www.drupal.org/node/1905070 for more details about configuration
12 * schema, types and type resolution.
14 class Sequence extends ArrayElement {
19 protected function getElementDefinition($key) {
20 $value = isset($this->value[$key]) ? $this->value[$key] : NULL;
21 // @todo: Remove BC layer for sequence with hyphen in front. https://www.drupal.org/node/2444979
23 if (isset($this->definition['sequence'][0])) {
24 $definition = $this->definition['sequence'][0];
26 elseif ($this->definition['sequence']) {
27 $definition = $this->definition['sequence'];
29 return $this->buildDataDefinition($definition, $value, $key);