function EntityType::getGroup

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getGroup()
  2. 9 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getGroup()
  3. 8.9.x 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 The machine name of the entity type group.

Overrides EntityTypeInterface::getGroup

File

core/lib/Drupal/Core/Entity/EntityType.php, line 864

Class

EntityType
Provides an implementation of an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function getGroup() {
  return $this->group;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.