public static function WebformVariantAccess::checkVariantCreateAccess in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Access/WebformVariantAccess.php \Drupal\webform\Access\WebformVariantAccess::checkVariantCreateAccess()
Check whether the webform variant create is enabled.
Parameters
\Drupal\webform\WebformInterface $webform: A webform.
string $webform_variant: A webform variant id.
Return value
\Drupal\Core\Access\AccessResultInterface The access result.
1 string reference to 'WebformVariantAccess::checkVariantCreateAccess'
File
- src/
Access/ WebformVariantAccess.php, line 37
Class
- WebformVariantAccess
- Defines the custom access control variant for the webform variants.
Namespace
Drupal\webform\AccessCode
public static function checkVariantCreateAccess(WebformInterface $webform, $webform_variant) {
return static::checkVariantAccess($webform, $webform_variant);
}