public static function WebformAccessResult::allowed in Webform 8.5
Same name and namespace in other branches
- 6.x src/Access/WebformAccessResult.php \Drupal\webform\Access\WebformAccessResult::allowed()
Creates an AccessResultInterface object with isAllowed() === TRUE.
Parameters
\Drupal\Core\Entity\EntityInterface|null $webform_entity: A webform or webform submission.
bool $cache_per_user: Cache per user.
Return value
\Drupal\Core\Access\AccessResultAllowed isAllowed() will be TRUE.
5 calls to WebformAccessResult::allowed()
- WebformAccessResult::allowedIf in src/
Access/ WebformAccessResult.php - Creates an allowed or neutral access result.
- WebformAccessRulesManager::checkWebformSubmissionAccess in src/
WebformAccessRulesManager.php - Check if operation is allowed through access rules for a submission.
- WebformEntityAccessControlHandler::checkAccess in src/
WebformEntityAccessControlHandler.php - Performs access checks.
- WebformEntityAccessControlHandler::checkCreateAccess in src/
WebformEntityAccessControlHandler.php - Performs create access checks.
- WebformSubmissionAccessControlHandler::checkAccess in src/
WebformSubmissionAccessControlHandler.php - Performs access checks.
File
- src/
Access/ WebformAccessResult.php, line 43
Class
- WebformAccessResult
- Value object indicating an allowed access result, with cacheability metadata.
Namespace
Drupal\webform\AccessCode
public static function allowed(EntityInterface $webform_entity = NULL, $cache_per_user = FALSE) {
return static::addDependencies(AccessResult::allowed(), $webform_entity, $cache_per_user);
}