W3cubDocs

/Drupal 8

interface DataReferenceDefinitionInterface

Interface for typed data references.

Hierarchy

See also

\Drupal\Core\TypedData\DataReferenceDefinition

\Drupal\Core\TypedData\DataReferenceInterface

Related topics

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

File

core/lib/Drupal/Core/TypedData/DataReferenceDefinitionInterface.php, line 13

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.
DataReferenceDefinitionInterface::getTargetDefinition public function Gets the data definition of the referenced data.

© 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!DataReferenceDefinitionInterface.php/interface/DataReferenceDefinitionInterface/8.1.x