public function ConfigEntityBase::__construct

Overrides Entity::__construct().

Overrides Entity::__construct

9 calls to ConfigEntityBase::__construct()
Action::__construct in drupal/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Action.php
Overrides Entity::__construct().
Block::__construct in drupal/core/modules/block/lib/Drupal/block/Plugin/Core/Entity/Block.php
Overrides \Drupal\Core\Config\Entity\ConfigEntityBase::__construct();
BreakpointGroup::__construct in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/BreakpointGroup.php
Overrides Drupal\config\ConfigEntityBase::__construct().
Editor::__construct in drupal/core/modules/editor/lib/Drupal/editor/Plugin/Core/Entity/Editor.php
Overrides Drupal\Core\Entity\Entity::__construct()
EntityDisplayBase::__construct in drupal/core/modules/entity/lib/Drupal/entity/EntityDisplayBase.php
Overrides Entity::__construct().

... See full list

9 methods override ConfigEntityBase::__construct()
Action::__construct in drupal/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Action.php
Overrides Entity::__construct().
Block::__construct in drupal/core/modules/block/lib/Drupal/block/Plugin/Core/Entity/Block.php
Overrides \Drupal\Core\Config\Entity\ConfigEntityBase::__construct();
BreakpointGroup::__construct in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/BreakpointGroup.php
Overrides Drupal\config\ConfigEntityBase::__construct().
Editor::__construct in drupal/core/modules/editor/lib/Drupal/editor/Plugin/Core/Entity/Editor.php
Overrides Drupal\Core\Entity\Entity::__construct()
EntityDisplayBase::__construct in drupal/core/modules/entity/lib/Drupal/entity/EntityDisplayBase.php
Overrides Entity::__construct().

... See full list

File

drupal/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 38
Definition of Drupal\Core\Config\Entity\ConfigEntityBase.

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

public function __construct(array $values, $entity_type) {
  parent::__construct($values, $entity_type);

  // Backup the original ID, if any.
  // Configuration entity IDs are strings, and '0' is a valid ID.
  $original_id = $this
    ->id();
  if ($original_id !== NULL && $original_id !== '') {
    $this
      ->setOriginalID($original_id);
  }
}