public function TestComplexData::toArray in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/serialization/tests/src/Unit/Normalizer/ComplexDataNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\TestComplexData::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.
Overrides ComplexDataInterface::toArray
File
- core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ ComplexDataNormalizerTest.php, line 140 - Contains \Drupal\Tests\serialization\Unit\Normalizer\ComplexDataNormalizerTest.
Class
- TestComplexData
- Test class implementing ComplexDataInterface and IteratorAggregate.
Namespace
Drupal\Tests\serialization\Unit\NormalizerCode
public function toArray() {
}