You are here

public function WebformHandlerInterface::accessElement in Webform 8.5

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

Controls entity operation access to webform submission element.

Parameters

array $element: The element's properties.

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\Access\AccessResultInterface The result of the access check. Defaults to neutral.

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

File

src/Plugin/WebformHandlerInterface.php, line 635

Class

WebformHandlerInterface
Defines the interface for webform handlers.

Namespace

Drupal\webform\Plugin

Code

public function accessElement(array &$element, $operation, AccountInterface $account = NULL);