public function ReferenceRegenerateCitekey::execute in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x 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\ActionCode
public function execute($entity = NULL) {
$entity->bibcite_citekey = $entity
->generateCitekey();
parent::execute($entity);
}