public function WebformVariant::isHidden in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/WebformVariant.php \Drupal\webform\Plugin\WebformElement\WebformVariant::isHidden()
Checks if the element is hidden.
Return value
bool TRUE if the element is hidden.
Overrides WebformElementBase::isHidden
File
- src/
Plugin/ WebformElement/ WebformVariant.php, line 72
Class
- WebformVariant
- Provides a 'webform_variant' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function isHidden() {
return !\Drupal::currentUser()
->hasPermission('edit webform variants');
}