You are here

public function WebformHandlerInterface::access in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformHandlerInterface.php \Drupal\webform\Plugin\WebformHandlerInterface::access()

Controls entity operation access to webform submission.

Parameters

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

string $operation: The operation that is to be performed on $entity.

\Drupal\Core\Session\AccountInterface $account: The account trying to access the entity.

Return value

\Drupal\Core\Core\AccessResultInterface The result of the access check. No option returns a nuetral result.

1 method overrides WebformHandlerInterface::access()
WebformHandlerBase::access in src/Plugin/WebformHandlerBase.php
Controls entity operation access to webform submission.

File

src/Plugin/WebformHandlerInterface.php, line 580

Class

WebformHandlerInterface
Defines the interface for webform handlers.

Namespace

Drupal\webform\Plugin

Code

public function access(WebformSubmissionInterface $webform_submission, $operation, AccountInterface $account = NULL);