function EntityTypeInterface::getGroup
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getGroup()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getGroup()
- 10 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::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 The machine name of the entity type group.
1 method overrides EntityTypeInterface::getGroup()
- EntityType::getGroup in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Gets the machine name of the entity type group.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeInterface.php, line 699
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getGroup();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.