You are here

public function AccessResultReasonInterface::getReason in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Access/AccessResultReasonInterface.php \Drupal\Core\Access\AccessResultReasonInterface::getReason()
  2. 9 core/lib/Drupal/Core/Access/AccessResultReasonInterface.php \Drupal\Core\Access\AccessResultReasonInterface::getReason()

Gets the reason for this access result.

Return value

string The reason of this access result or an empty string if no reason is provided.

File

core/lib/Drupal/Core/Access/AccessResultReasonInterface.php, line 24

Class

AccessResultReasonInterface
Interface for access result value objects with stored reason for developers.

Namespace

Drupal\Core\Access

Code

public function getReason();