Same filename in this branch
- 10 core/lib/Drupal/Core/Entity/EntityType.php
- 10 core/lib/Drupal/Core/Entity/Annotation/EntityType.php
Same filename and directory in other branches
- 8.9.x core/lib/Drupal/Core/Entity/Annotation/EntityType.php
- 9 core/lib/Drupal/Core/Entity/Annotation/EntityType.php
Namespace
Drupal\Core\Entity\Annotation
File
core/lib/Drupal/Core/Entity/Annotation/EntityType.php
View source
<?php
namespace Drupal\Core\Entity\Annotation;
use Drupal\Component\Annotation\Plugin;
use Drupal\Core\StringTranslation\StringTranslationTrait;
class EntityType extends Plugin {
use StringTranslationTrait;
public $entity_type_class = 'Drupal\\Core\\Entity\\EntityType';
public $group = 'default';
public $group_label = '';
public function get() {
$values = $this->definition;
$class = $values['entity_type_class'];
unset($values['entity_type_class']);
return new $class($values);
}
}
Classes