function TestAction::access
Same name in other branches
- 10 core/modules/views/tests/modules/action_bulk_test/src/Plugin/Action/TestAction.php \Drupal\action_bulk_test\Plugin\Action\TestAction::access()
Overrides ActionInterface::access
File
-
core/
modules/ views/ tests/ modules/ action_bulk_test/ src/ Plugin/ Action/ TestAction.php, line 28
Class
- TestAction
- Test action.
Namespace
Drupal\action_bulk_test\Plugin\ActionCode
public function access($object, ?AccountInterface $account = NULL, $return_as_object = FALSE) : bool|AccessResultInterface {
return $return_as_object ? AccessResult::allowed() : TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.