public function TestComplexData::get 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::get()
Gets a property object.
Parameters
$property_name: The name of the property to get; e.g., 'title' or 'name'.
Return value
\Drupal\Core\TypedData\TypedDataInterface The property object.
Throws
\InvalidArgumentException If an invalid property name is given.
\Drupal\Core\TypedData\Exception\MissingDataException If the complex data structure is unset and no property can be created.
Overrides ComplexDataInterface::get
File
- core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ ComplexDataNormalizerTest.php, line 95 - Contains \Drupal\Tests\serialization\Unit\Normalizer\ComplexDataNormalizerTest.
Class
- TestComplexData
- Test class implementing ComplexDataInterface and IteratorAggregate.
Namespace
Drupal\Tests\serialization\Unit\NormalizerCode
public function get($property_name) {
}