public function TestComplexData::getRoot 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::getRoot()
Returns the root of the typed data tree.
Returns the root data for a tree of typed data objects; e.g. for an entity field item the root of the tree is its parent entity object.
Return value
\Drupal\Core\TypedData\TraversableTypedDataInterface The root data structure, either complex data or a list.
Overrides TypedDataInterface::getRoot
File
- core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ ComplexDataNormalizerTest.php, line 116 - Contains \Drupal\Tests\serialization\Unit\Normalizer\ComplexDataNormalizerTest.
Class
- TestComplexData
- Test class implementing ComplexDataInterface and IteratorAggregate.
Namespace
Drupal\Tests\serialization\Unit\NormalizerCode
public function getRoot() {
}