You are here

public function WebformHandlerBase::accessElement in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformHandlerBase.php \Drupal\webform\Plugin\WebformHandlerBase::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.

Overrides WebformHandlerInterface::accessElement

1 call to WebformHandlerBase::accessElement()
TestWebformHandler::accessElement in tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php
Controls entity operation access to webform submission element.
1 method overrides WebformHandlerBase::accessElement()
TestWebformHandler::accessElement in tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php
Controls entity operation access to webform submission element.

File

src/Plugin/WebformHandlerBase.php, line 697

Class

WebformHandlerBase
Provides a base class for a webform handler.

Namespace

Drupal\webform\Plugin

Code

public function accessElement(array &$element, $operation, AccountInterface $account = NULL) {
  return AccessResult::neutral();
}