function ObjectDefinition::__construct
ObjectDefinition constructor.
Parameters
array $definition: An array of definition values.
File
-
core/
tests/ Drupal/ Tests/ Component/ Annotation/ Plugin/ Discovery/ AnnotationBridgeDecoratorTest.php, line 66
Class
Namespace
Drupal\Tests\Component\Annotation\Plugin\DiscoveryCode
public function __construct(array $definition) {
foreach ($definition as $property => $value) {
$this->{$property} = $value;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.