You are here

public function EmailAction::access in Drupal 10

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

File

core/lib/Drupal/Core/Action/Plugin/Action/EmailAction.php, line 211

Class

EmailAction
Sends an email message.

Namespace

Drupal\Core\Action\Plugin\Action

Code

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