3 namespace Drupal\Core\Config\Schema;
5 use Drupal\Core\TypedData\ListDataDefinition;
8 * A typed data definition class for defining sequences in configuration.
10 class SequenceDataDefinition extends ListDataDefinition {
13 * Gets the description of how the sequence should be sorted.
15 * Only the top level of the array should be sorted. Top-level keys should be
16 * discarded when using 'value' sorting. If the sequence is an associative
17 * array 'key' sorting is recommended, if not 'value' sorting is recommended.
20 * May be 'key' (to sort by key), 'value' (to sort by value, discarding
21 * keys), or NULL (if the schema does not describe how the sequence should
24 public function getOrderBy() {
25 return isset($this->definition['orderby']) ? $this->definition['orderby'] : NULL;