ConfigEntityBase::isNew

public ConfigEntityBase::isNew()

Overrides Entity::isNew().

EntityInterface::enforceIsNew() is only supported for newly created configuration entities but has no effect after saving, since each configuration entity is unique.

Overrides Entity::isNew

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 150

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

public function isNew() {
  return !empty($this->enforceIsNew);
}
doc_Drupal
2016-10-29 08:52:29
Comments
Leave a Comment

Please login to continue.