ReferenceRegenerateCitekey.php in Bibliography & Citation 8
Same filename and directory in other branches
Namespace
Drupal\bibcite_entity\Plugin\ActionFile
modules/bibcite_entity/src/Plugin/Action/ReferenceRegenerateCitekey.phpView source
<?php
namespace Drupal\bibcite_entity\Plugin\Action;
/**
* Regenerate citekey for reference.
*
* @Action(
* id = "bibcite_entity_reference_regenerate_citekey",
* label = @Translation("Regenerate citation key"),
* type = "bibcite_reference",
* )
*/
class ReferenceRegenerateCitekey extends EntitySaveBase {
/**
* {@inheritdoc}
*/
public function execute($entity = NULL) {
$entity->bibcite_citekey = $entity
->generateCitekey();
parent::execute($entity);
}
}
Classes
Name | Description |
---|---|
ReferenceRegenerateCitekey | Regenerate citekey for reference. |