ContentEntityType::get

public ContentEntityType::get()

Gets the value of an annotation.

Overrides EntityType::get

File

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

Class

ContentEntityType
Defines a content entity type annotation object.

Namespace

Drupal\Core\Entity\Annotation

Code

public function get() {
  $this->definition['group_label'] = new TranslatableMarkup('Content', array(), array('context' => 'Entity type group'));

  return parent::get();
}
doc_Drupal
2016-10-29 08:57:43
Comments
Leave a Comment

Please login to continue.