You are here

public static function WebformVariantAccess::checkVariantSettingsAccess in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Access/WebformVariantAccess.php \Drupal\webform\Access\WebformVariantAccess::checkVariantSettingsAccess()

Check whether the webform variant settings is enabled.

Parameters

\Drupal\webform\WebformInterface $webform: A webform.

Return value

\Drupal\Core\Access\AccessResultInterface The access result.

1 string reference to 'WebformVariantAccess::checkVariantSettingsAccess'
webform.routing.yml in ./webform.routing.yml
webform.routing.yml

File

src/Access/WebformVariantAccess.php, line 22

Class

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

Namespace

Drupal\webform\Access

Code

public static function checkVariantSettingsAccess(WebformInterface $webform) {
  return static::checkVariantAccess($webform);
}