Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getGroup()
- 9 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getGroup()
Gets the machine name of the entity type group.
The entity type group is an annotation property of the entity type.
Drupal core defines two entity type groups:
- content: Entities which form the information on a site. Content entities are typically customized with fields.
- config: Entities which define structural elements of a site, which are managed as part of the site's configuration.
Return value
string
Overrides EntityTypeInterface::getGroup
File
- core/
lib/ Drupal/ Core/ Entity/ EntityType.php, line 818
Class
- EntityType
- Provides an implementation of an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getGroup() {
return $this->group;
}