ComplexDataInterface::toArray

public ComplexDataInterface::toArray()

Returns an array of all property values.

Gets an array of plain property values including all not-computed properties.

Return value

array An array of property values, keyed by property name.

Throws

\Drupal\Core\TypedData\Exception\MissingDataException If the complex data structure is unset and no property can be created.

File

core/lib/Drupal/Core/TypedData/ComplexDataInterface.php, line 95

Class

ComplexDataInterface
Interface for complex data; i.e. data containing named and typed properties.

Namespace

Drupal\Core\TypedData

Code

public function toArray();
doc_Drupal
2016-10-29 08:51:40
Comments
Leave a Comment

Please login to continue.