On this page
public function EntityType::get
public EntityType::get()
Gets the value of an annotation.
Overrides Plugin::get
File
- core/lib/Drupal/Core/Entity/Annotation/EntityType.php, line 51
Class
- EntityType
- Defines an Entity type annotation object.
Namespace
Drupal\Core\Entity\AnnotationCode
public function get() {
$values = $this->definition;
// Use the specified entity type class, and remove it before instantiating.
$class = $values['entity_type_class'];
unset($values['entity_type_class']);
return new $class($values);
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Annotation!EntityType.php/function/EntityType::get/8.1.x