function RulesActionBase::access
Overrides RulesActionInterface::access
File
-
src/
Core/ RulesActionBase.php, line 124
Class
- RulesActionBase
- Base class for rules actions.
Namespace
Drupal\rules\CoreCode
public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
// Just deny access per default for now.
if ($return_as_object) {
return AccessResult::forbidden();
}
return FALSE;
}