Same filename and directory in other branches
- 8.9.x core/lib/Drupal/Core/Config/Schema/Sequence.php
- 9 core/lib/Drupal/Core/Config/Schema/Sequence.php
Namespace
Drupal\Core\Config\Schema
File
core/lib/Drupal/Core/Config/Schema/Sequence.php
View source
<?php
namespace Drupal\Core\Config\Schema;
class Sequence extends ArrayElement {
protected function getElementDefinition($key) {
$value = $this->value[$key] ?? NULL;
$definition = [];
if (isset($this->definition['sequence'][0])) {
$definition = $this->definition['sequence'][0];
$bc_sequence_location = $this
->getPropertyPath();
@trigger_error("The definition for the '{$bc_sequence_location}' sequence declares the type of its items in a way that is deprecated in drupal:8.0.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/2442603", E_USER_DEPRECATED);
}
elseif ($this->definition['sequence']) {
$definition = $this->definition['sequence'];
}
return $this
->buildDataDefinition($definition, $value, $key);
}
}
Classes
Name |
Description |
Sequence |
Defines a configuration element of type Sequence. |