ListInterface::first

public ListInterface::first() Returns the first item in this list. Return value \Drupal\Core\TypedData\TypedDataInterface The first item in this list. Throws \Drupal\Core\TypedData\Exception\MissingDataException If the complex data structure is unset and no item can be created. File core/lib/Drupal/Core/TypedData/ListInterface.php, line 92 Class ListInterface Interface for a list of typed data. Namespace Drupal\Core\TypedData Code public function first();

ListInterface::filter

public ListInterface::filter($callback) Filters the items in the list using a custom callback. Parameters callable $callback: The callback to use for filtering. Like with array_filter(), the callback is called for each item in the list. Only items for which the callback returns TRUE are preserved. Return value $this File core/lib/Drupal/Core/TypedData/ListInterface.php, line 125 Class ListInterface Interface for a list of typed data. Namespace Drupal\Core\TypedData Code public functi

ListInterface::appendItem

public ListInterface::appendItem($value = NULL) Appends a new item to the list. Parameters mixed $value: The value of the new item. Return value \Drupal\Core\TypedData\TypedDataInterface The item that was appended. File core/lib/Drupal/Core/TypedData/ListInterface.php, line 103 Class ListInterface Interface for a list of typed data. Namespace Drupal\Core\TypedData Code public function appendItem($value = NULL);

ListInterface

Interface for a list of typed data. A list of typed data contains only items of the same type, is ordered and may contain duplicates. Note that the data type of a list is always 'list'. When implementing this interface which extends Traversable, make sure to list IteratorAggregate or Iterator before this interface in the implements clause. Hierarchy interface \Drupal\Core\TypedData\TypedDataInterfaceinterface \Drupal\Core\TypedData\TraversableTypedDataInterface extends \Traversableinterface \Dr

ListElement::__construct

public ListElement::__construct(TraversableTypedDataInterface $element) Constructs a ListElement. Parameters \Drupal\Core\TypedData\TraversableTypedDataInterface $element: The schema element this form element is for. File core/modules/config_translation/src/FormElement/ListElement.php, line 34 Class ListElement Defines the list element for the configuration translation interface. Namespace Drupal\config_translation\FormElement Code public function __construct(TraversableTypedDataInter

ListElement::setConfig

public ListElement::setConfig(Config $base_config, LanguageConfigOverride $config_translation, $config_values, $base_key = NULL) Sets configuration based on a nested form value array. If the configuration values are the same as the source configuration, the override should be removed from the translation configuration. Parameters \Drupal\Core\Config\Config $base_config: Base configuration values, in the source language. \Drupal\language\Config\LanguageConfigOverride $config_translation: Transl

ListElement::getTranslationBuild

public ListElement::getTranslationBuild(LanguageInterface $source_language, LanguageInterface $translation_language, $source_config, $translation_config, array $parents, $base_key = NULL) Builds a render array containg the source and translation form elements. Parameters \Drupal\Core\Language\LanguageInterface $source_language: The source language of the configuration object. \Drupal\Core\Language\LanguageInterface $translation_language: The language to display the translation form for. mixed

ListElement::getGroupTitle

protected ListElement::getGroupTitle(DataDefinitionInterface $definition, array $group_build) Returns the title for the 'details' element of a group of schema elements. For some configuration elements the same element structure can be repeated multiple times (for example views displays, filters, etc.). Thus, we try to find a more usable title for the details summary. First check if there is an element which is called title or label and use its value. Then check if there is an element which cont

ListElement::create

public static ListElement::create(TypedDataInterface $schema) Creates a form element instance from a schema definition. Parameters \Drupal\Core\TypedData\TypedDataInterface $schema: The configuration schema. Return value static Overrides ElementInterface::create File core/modules/config_translation/src/FormElement/ListElement.php, line 41 Class ListElement Defines the list element for the configuration translation interface. Namespace Drupal\config_translation\FormElement Code public

ListElement::$element

The schema element this form is for. Type: \Drupal\Core\TypedData\TraversableTypedDataInterface File core/modules/config_translation/src/FormElement/ListElement.php, line 26 Class ListElement Defines the list element for the configuration translation interface. Namespace Drupal\config_translation\FormElement Code protected $element;