You are here

public function PaymentExecuteAccess::setAccessResult in Payment 8.2

Sets an access check result.

Parameters

\Drupal\Core\Access\AccessResultInterface:

Return value

$this

File

src/Event/PaymentExecuteAccess.php, line 110

Class

PaymentExecuteAccess
Provides an event that is dispatched when access is checked for payment execution.

Namespace

Drupal\payment\Event

Code

public function setAccessResult(AccessResultInterface $access_result) {
  $this->accessResult = $this->accessResult
    ->orIf($access_result);
  return $this;
}