public function WebformHandlerInterface::accessElement in Webform 6.x
Same name and namespace in other branches
- 8.5 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 589
Class
- WebformHandlerInterface
- Defines the interface for webform handlers.
Namespace
Drupal\webform\PluginCode
public function accessElement(array &$element, $operation, AccountInterface $account = NULL);