You are here

public static function WebformVariantAccess::checkVariantCreateAccess in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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'
webform.routing.yml in ./webform.routing.yml
webform.routing.yml

File

src/Access/WebformVariantAccess.php, line 37

Class

WebformVariantAccess
Defines the custom access control variant for the webform variants.

Namespace

Drupal\webform\Access

Code

public static function checkVariantCreateAccess(WebformInterface $webform, $webform_variant) {
  return static::checkVariantAccess($webform, $webform_variant);
}