function TestAction::access

Same name in other branches
  1. 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\Action

Code

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.