Skip to content
Snippets Groups Projects
Select Git revision
  • 9c4db60dfb53698f8e72fab2a2175b75967b2c11
  • 11.x default protected
  • 11.2.x protected
  • 10.5.x protected
  • 10.6.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
  • 10.4.5 protected
  • 11.0.13 protected
41 results

ConfigEntityType.php

Blame
  • user avatar
    Issue #2288507 by er.pushpinderrana: Add documentation to entity type...
    Jennifer Hodgdon authored
    Issue #2288507 by er.pushpinderrana: Add documentation to entity type annotation classes to aid developers of entity types
    9c4db60d
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ConfigEntityType.php 1015 B
    <?php
    
    /**
     * @file
     * Contains \Drupal\Core\Entity\Annotation\ConfigEntityType.
     */
    
    namespace Drupal\Core\Entity\Annotation;
    
    /**
     * Defines a config entity type annotation object.
     *
     * Config Entity type plugins use an object-based annotation method, rather than an
     * array-type annotation method (as commonly used on other annotation types).
     * The annotation properties of entity types are found on
     * \Drupal\Core\Entity\ConfigEntityType and are accessed using
     * get/set methods defined in \Drupal\Core\Entity\EntityTypeInterface.
     *
     * @ingroup entity_api
     *
     * @Annotation
     */
    class ConfigEntityType extends EntityType {
    
      /**
       * {@inheritdoc}
       */
      public $entity_type_class = 'Drupal\Core\Config\Entity\ConfigEntityType';
    
      /**
       * {@inheritdoc}
       */
      public $group = 'configuration';
    
      /**
       * {@inheritdoc}
       */
      public function get() {
        $this->definition['group_label'] = $this->t('Configuration', array(), array('context' => 'Entity type group'));
    
        return parent::get();
      }
    
    }