AccessResultReasonInterface::setReason

public AccessResultReasonInterface::setReason($reason)

Sets the reason for this access result.

Parameters

$reason string|null: The reason of this access result or NULL if no reason is provided.

Return value

\Drupal\Core\Access\AccessResultInterface The access result instance.

File

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

Class

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

Namespace

Drupal\Core\Access

Code

public function setReason($reason);
doc_Drupal
2016-10-29 08:42:37
Comments
Leave a Comment

Please login to continue.