ComplexDataDefinitionInterface

Interface for complex data definitions. Hierarchy interface \Drupal\Core\TypedData\DataDefinitionInterfaceinterface \Drupal\Core\TypedData\ComplexDataDefinitionInterface 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 ComplexD

ComplexDataDefinitionBase::__sleep

public ComplexDataDefinitionBase::__sleep() File core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php, line 42 Class ComplexDataDefinitionBase Base class for complex data definitions. Namespace Drupal\Core\TypedData Code public function __sleep() { // Do not serialize the cached property definitions. $vars = get_object_vars($this); unset($vars['propertyDefinitions']); return array_keys($vars); }

ComplexDataDefinitionBase::getPropertyDefinitions

abstract public ComplexDataDefinitionBase::getPropertyDefinitions() Gets an array of property definitions of contained properties. Return value \Drupal\Core\TypedData\DataDefinitionInterface[] An array of property definitions of contained properties, keyed by property name. Overrides ComplexDataDefinitionInterface::getPropertyDefinitions File core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php, line 20 Class ComplexDataDefinitionBase Base class for complex data definitions. Nam

ComplexDataDefinitionBase::getPropertyDefinition

public ComplexDataDefinitionBase::getPropertyDefinition($name) Gets the definition of a contained property. Parameters string $name: The name of property. Return value \Drupal\Core\TypedData\DataDefinitionInterface|null The definition of the property or NULL if the property does not exist. Overrides ComplexDataDefinitionInterface::getPropertyDefinition File core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php, line 25 Class ComplexDataDefinitionBase Base class for complex data de

ComplexDataDefinitionBase::getMainPropertyName

public ComplexDataDefinitionBase::getMainPropertyName() Returns the name of the main property, if any. Some field items consist mainly of one main property, e.g. the value of a text field or the target_id of an entity reference. If the field item has no main property, the method returns NULL. Return value string|null The name of the value property, or NULL if there is none. Overrides ComplexDataDefinitionInterface::getMainPropertyName File core/lib/Drupal/Core/TypedData/ComplexDataDefinition

ComplexDataDefinitionBase::$propertyDefinitions

An array of data definitions. Type: \Drupal\Core\TypedData\DataDefinitionInterface[] File core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php, line 15 Class ComplexDataDefinitionBase Base class for complex data definitions. Namespace Drupal\Core\TypedData Code protected $propertyDefinitions;

ComplexDataDefinitionBase

Base class for complex data definitions. Hierarchy class \Drupal\Core\TypedData\DataDefinition implements \ArrayAccess, DataDefinitionInterfaceclass \Drupal\Core\TypedData\ComplexDataDefinitionBase implements ComplexDataDefinitionInterface File core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php, line 8 Namespace Drupal\Core\TypedData Members Name Modifiers Type Description ComplexDataDefinitionBase::$propertyDefinitions protected property An array of data defi

CompiledRoute::__construct

public CompiledRoute::__construct($fit, $pattern_outline, $num_parts, $staticPrefix, $regex, array $tokens, array $pathVariables, $hostRegex = NULL, array $hostTokens = array(), array $hostVariables = array(), array $variables = array()) Constructs a new compiled route object. This is a ridiculously long set of constructor parameters, but as this object is little more than a collection of values it's not a serious problem. The parent Symfony class does the same, as well, making it difficult to

CompiledRoute::unserialize

public CompiledRoute::unserialize($serialized) Overrides CompiledRoute::unserialize File core/lib/Drupal/Core/Routing/CompiledRoute.php, line 157 Class CompiledRoute A compiled route contains derived information from a route object. Namespace Drupal\Core\Routing Code public function unserialize($serialized) { parent::unserialize($serialized); $data = unserialize($serialized); $this->fit = $data['fit']; $this->patternOutline = $data['patternOutline']; $this->numParts

CompiledRoute::serialize

public CompiledRoute::serialize() Overrides CompiledRoute::serialize File core/lib/Drupal/Core/Routing/CompiledRoute.php, line 143 Class CompiledRoute A compiled route contains derived information from a route object. Namespace Drupal\Core\Routing Code public function serialize() { // Calling the parent method is safer than trying to optimize out the extra // function calls. $data = unserialize(parent::serialize()); $data['fit'] = $this->fit; $data['patternOutline'] = $thi