/**
  * {@inheritdoc}
  */
 public function __construct($definition)
 {
     parent::__construct($definition);
     // Always add a default 'uuid' key.
     $this->entity_keys['uuid'] = 'uuid';
     $this->controllers += array('storage' => 'Drupal\\Core\\Config\\Entity\\ConfigEntityStorage');
 }
Example #2
0
 /**
  * {@inheritdoc}
  *
  * @throws \Drupal\Core\Config\Entity\Exception\ConfigEntityStorageClassException
  *   Exception thrown when the provided class is not an instance of
  *   \Drupal\Core\Config\Entity\ConfigEntityStorage.
  */
 public function __construct($definition)
 {
     // Ensure a default list cache tag is set; do this before calling the parent
     // constructor, because we want "Configuration System style" cache tags.
     if (empty($this->list_cache_tags)) {
         $this->list_cache_tags = ['config:' . $definition['id'] . '_list'];
     }
     parent::__construct($definition);
     // Always add a default 'uuid' key.
     $this->entity_keys['uuid'] = 'uuid';
     $this->entity_keys['langcode'] = 'langcode';
     $this->handlers += array('storage' => 'Drupal\\Core\\Config\\Entity\\ConfigEntityStorage');
     $this->lookup_keys[] = 'uuid';
 }
Example #3
0
 /**
  * {@inheritdoc}
  *
  * @throws \Drupal\Core\Config\Entity\Exception\ConfigEntityStorageClassException
  *   Exception thrown when the provided class is not an instance of
  *   \Drupal\Core\Config\Entity\ConfigEntityStorage.
  */
 public function setStorageClass($class)
 {
     $this->checkStorageClass($class);
     parent::setStorageClass($class);
 }