You are here

public function EntitySaveBase::execute in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_entity/src/Plugin/Action/EntitySaveBase.php \Drupal\bibcite_entity\Plugin\Action\EntitySaveBase::execute()

Executes the plugin.

Overrides ExecutableInterface::execute

1 call to EntitySaveBase::execute()
ReferenceRegenerateCitekey::execute in modules/bibcite_entity/src/Plugin/Action/ReferenceRegenerateCitekey.php
Executes the plugin.
1 method overrides EntitySaveBase::execute()
ReferenceRegenerateCitekey::execute in modules/bibcite_entity/src/Plugin/Action/ReferenceRegenerateCitekey.php
Executes the plugin.

File

modules/bibcite_entity/src/Plugin/Action/EntitySaveBase.php, line 24

Class

EntitySaveBase
Base entity save action.

Namespace

Drupal\bibcite_entity\Plugin\Action

Code

public function execute($entity = NULL) {

  /** @var \Drupal\Core\Entity\EntityInterface $entity */
  $entity->changed = 0;
  $entity
    ->save();
}