You are here

protected function ActionCommonTrait::aquireGrants in Content Access 8

Apply the new grants to the affected node.

4 calls to ActionCommonTrait::aquireGrants()
ActionCommonTrait::actionUser in src/Plugin/RulesAction/ActionCommonTrait.php
Process Rule's param, and grant by the passed operation.
ActionGrantNodePermissions::execute in src/Plugin/RulesAction/ActionGrantNodePermissions.php
Executes the plugin.
ActionResetNodePermissions::execute in src/Plugin/RulesAction/ActionResetNodePermissions.php
Executes the plugin.
ActionRevokeNodePermissions::execute in src/Plugin/RulesAction/ActionRevokeNodePermissions.php
Executes the plugin.

File

src/Plugin/RulesAction/ActionCommonTrait.php, line 50

Class

ActionCommonTrait
Provides common functionality for Content Access Rules actions.

Namespace

Drupal\content_access\Plugin\RulesAction

Code

protected function aquireGrants(NodeInterface $node) {
  \Drupal::entityTypeManager()
    ->getAccessControlHandler('node')
    ->writeGrants($node);
}