public function GotoAction::access in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Action/Plugin/Action/GotoAction.php \Drupal\Core\Action\Plugin\Action\GotoAction::access()
- 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\ActionCode
public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
$access = AccessResult::allowed();
return $return_as_object ? $access : $access
->isAllowed();
}