public function DomainAccessNone::execute in Domain Access 8
Executes the plugin.
Overrides ExecutableInterface::execute
File
- domain_access/
src/ Plugin/ Action/ DomainAccessNone.php, line 21
Class
- DomainAccessNone
- Removes a node to all affiliates..
Namespace
Drupal\domain_access\Plugin\ActionCode
public function execute($entity = NULL) {
$entity
->set(DomainAccessManagerInterface::DOMAIN_ACCESS_ALL_FIELD, 0);
$entity
->save();
}