You are here

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

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

Executes the plugin.

Overrides EntitySaveBase::execute

File

modules/bibcite_entity/src/Plugin/Action/ReferenceRegenerateCitekey.php, line 19

Class

ReferenceRegenerateCitekey
Regenerate citekey for reference.

Namespace

Drupal\bibcite_entity\Plugin\Action

Code

public function execute($entity = NULL) {
  $entity->bibcite_citekey = $entity
    ->generateCitekey();
  parent::execute($entity);
}