You are here

public function GotoAction::access in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Action/Plugin/Action/GotoAction.php \Drupal\Core\Action\Plugin\Action\GotoAction::access()
  2. 9 core/lib/Drupal/Core/Action/Plugin/Action/GotoAction.php \Drupal\Core\Action\Plugin\Action\GotoAction::access()

File

core/lib/Drupal/Core/Action/Plugin/Action/GotoAction.php, line 135

Class

GotoAction
Redirects to a different URL.

Namespace

Drupal\Core\Action\Plugin\Action

Code

public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
  $access = AccessResult::allowed();
  return $return_as_object ? $access : $access
    ->isAllowed();
}