You are here

public function RulesComponentConfig::createDuplicate in Rules 8.3

Creates a duplicate of the entity.

Return value

static A clone of $this with all identifiers unset, so saving it inserts a new entity into the storage system.

Overrides ConfigEntityBase::createDuplicate

File

src/Entity/RulesComponentConfig.php, line 218

Class

RulesComponentConfig
Rules component configuration entity to persistently store configuration.

Namespace

Drupal\rules\Entity

Code

public function createDuplicate() {
  $duplicate = parent::createDuplicate();
  unset($duplicate->componentObject);
  return $duplicate;
}