public function UpdateMetadataAction::execute in Bynder 4.0.x
Same name and namespace in other branches
- 8.3 src/Plugin/Action/UpdateMetadataAction.php \Drupal\bynder\Plugin\Action\UpdateMetadataAction::execute()
- 8.2 src/Plugin/Action/UpdateMetadataAction.php \Drupal\bynder\Plugin\Action\UpdateMetadataAction::execute()
Executes the plugin.
Overrides ExecutableInterface::execute
File
- src/
Plugin/ Action/ UpdateMetadataAction.php, line 24
Class
- UpdateMetadataAction
- Updates the Bynder metadata.
Namespace
Drupal\bynder\Plugin\ActionCode
public function execute($entity = NULL) {
$entity
->getSource()
->ensureMetadata($entity, TRUE);
}