public function WebformHandlerBase::accessElement in Webform 6.x
Same name and namespace in other branches
- 8.5 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 636
Class
- WebformHandlerBase
- Provides a base class for a webform handler.
Namespace
Drupal\webform\PluginCode
public function accessElement(array &$element, $operation, AccountInterface $account = NULL) {
return AccessResult::neutral();
}