W3cubDocs

/Drupal 8

interface ComplexDataDefinitionInterface

Interface for complex data definitions.

Hierarchy

See also

\Drupal\Core\TypedData\ComplexDataInterface

Related topics

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

File

core/lib/Drupal/Core/TypedData/ComplexDataDefinitionInterface.php, line 12

Namespace

Drupal\Core\TypedData

Members

Name Modifiers Type Description
ComplexDataDefinitionInterface::getMainPropertyName public function Returns the name of the main property, if any.
ComplexDataDefinitionInterface::getPropertyDefinition public function Gets the definition of a contained property.
ComplexDataDefinitionInterface::getPropertyDefinitions public function Gets an array of property definitions of contained properties.
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.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!ComplexDataDefinitionInterface.php/interface/ComplexDataDefinitionInterface/8.1.x