ContentEntityType::__construct
public function ContentEntityType::__construct
public ContentEntityType::__construct($definition)
Constructs a new EntityType.
Parameters
array $definition: An array of values from the annotation.
Throws
\Drupal\Core\Entity\Exception\EntityTypeIdLengthException Thrown when attempting to instantiate an entity type with too long ID.
Overrides EntityType::__construct
File
- core/lib/Drupal/Core/Entity/ContentEntityType.php, line 13
Class
- ContentEntityType
- Provides an implementation of a content entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function __construct($definition) { parent::__construct($definition); $this->handlers += array( 'storage' => 'Drupal\Core\Entity\Sql\SqlContentEntityStorage', 'view_builder' => 'Drupal\Core\Entity\EntityViewBuilder', ); }
© 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!ContentEntityType.php/function/ContentEntityType::__construct/8.1.x