ListDataDefinitionInterface

Interface for data definitions of lists.

This interface is present on a data definition if it describes a list. The actual lists implement the \Drupal\Core\TypedData\ListInterface.

Hierarchy

See also

\Drupal\Core\TypedData\ListDefinition

\Drupal\Core\TypedData\ListInterface

Related topics

Typed Data API
API for describing data based on a set of available data types.

File

core/lib/Drupal/Core/TypedData/ListDataDefinitionInterface.php, line 16

Namespace

Drupal\Core\TypedData

Members

Name Modifiers Type Description
DataDefinitionInterface::addConstraint public function Adds a validation constraint.
DataDefinitionInterface::createFromDataType public static function Creates a new data definition object.
DataDefinitionInterface::getClass public function Returns the class used for creating the typed data object.
DataDefinitionInterface::getConstraint public function Returns a validation constraint.
DataDefinitionInterface::getConstraints public function Returns an array of validation constraints.
DataDefinitionInterface::getDataType public function Returns the data type of the data.
DataDefinitionInterface::getDescription public function Returns a human readable description.
DataDefinitionInterface::getLabel public function Returns a human readable label.
DataDefinitionInterface::getSetting public function Returns the value of a given setting.
DataDefinitionInterface::getSettings public function Returns the array of settings, as required by the used class.
DataDefinitionInterface::isComputed public function Determines whether the data value is computed.
DataDefinitionInterface::isList public function Returns whether the data is multi-valued, i.e. a list of data items.
DataDefinitionInterface::isReadOnly public function Determines whether the data is read-only.
DataDefinitionInterface::isRequired public function Determines whether a data value is required.
ListDataDefinitionInterface::createFromItemType public static function Creates a new list data definition for items of the given data type.
ListDataDefinitionInterface::getItemDefinition public function Gets the data definition of an item of the list.
doc_Drupal
2016-10-29 09:23:30
Comments
Leave a Comment

Please login to continue.