public function ConfigEntityBase::__construct

Overrides Entity::__construct().

Overrides Entity::__construct

2 calls to ConfigEntityBase::__construct()
BreakpointGroup::__construct in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/BreakpointGroup.php
Overrides Drupal\config\ConfigEntityBase::__construct().
PictureMapping::__construct in drupal/core/modules/picture/lib/Drupal/picture/Plugin/Core/Entity/PictureMapping.php
Overrides Drupal\config\ConfigEntityBase::__construct().
2 methods override ConfigEntityBase::__construct()
BreakpointGroup::__construct in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/BreakpointGroup.php
Overrides Drupal\config\ConfigEntityBase::__construct().
PictureMapping::__construct in drupal/core/modules/picture/lib/Drupal/picture/Plugin/Core/Entity/PictureMapping.php
Overrides Drupal\config\ConfigEntityBase::__construct().

File

drupal/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 31
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);
  }
}