public function WebformHandlerBase::access in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformHandlerBase.php \Drupal\webform\Plugin\WebformHandlerBase::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.
Overrides WebformHandlerInterface::access
1 call to WebformHandlerBase::access()
- TestWebformHandler::access in tests/
modules/ webform_test_handler/ src/ Plugin/ WebformHandler/ TestWebformHandler.php - Controls entity operation access to webform submission.
1 method overrides WebformHandlerBase::access()
- TestWebformHandler::access in tests/
modules/ webform_test_handler/ src/ Plugin/ WebformHandler/ TestWebformHandler.php - Controls entity operation access to webform submission.
File
- src/
Plugin/ WebformHandlerBase.php, line 658
Class
- WebformHandlerBase
- Provides a base class for a webform handler.
Namespace
Drupal\webform\PluginCode
public function access(WebformSubmissionInterface $webform_submission, $operation, AccountInterface $account = NULL) {
return AccessResult::neutral();
}