function ConfigEntityType::get

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php \Drupal\Core\Entity\Annotation\ConfigEntityType::get()
  2. 8.9.x core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php \Drupal\Core\Entity\Annotation\ConfigEntityType::get()
  3. 10 core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php \Drupal\Core\Entity\Annotation\ConfigEntityType::get()

Overrides EntityType::get

File

core/lib/Drupal/Core/Entity/Annotation/ConfigEntityType.php, line 34

Class

ConfigEntityType
Defines a config entity type annotation object.

Namespace

Drupal\Core\Entity\Annotation

Code

public function get() {
  $this->definition['group_label'] = new TranslatableMarkup('Configuration', [], [
    'context' => 'Entity type group',
  ]);
  return parent::get();
}

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