public function ActionResetNodePermissions::execute in Content Access 8
Executes the plugin.
Overrides RulesActionBase::execute
File
- src/
Plugin/ RulesAction/ ActionResetNodePermissions.php, line 28
Class
- ActionResetNodePermissions
- Provides a 'Reset access by role' action.
Namespace
Drupal\content_access\Plugin\RulesActionCode
public function execute() {
$node = $this
->getContextValue('node');
content_access_delete_per_node_settings($node);
$this
->aquireGrants($node);
}