protected function WebformUiElementTypeFormBase::isPreviewEnabled in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_ui/src/Form/WebformUiElementTypeFormBase.php \Drupal\webform_ui\Form\WebformUiElementTypeFormBase::isPreviewEnabled()
Determine if webform element type preview is enabled.
Return value
bool TRUE if webform element type preview is enabled.
3 calls to WebformUiElementTypeFormBase::isPreviewEnabled()
- WebformUiElementTypeFormBase::buildForm in modules/
webform_ui/ src/ Form/ WebformUiElementTypeFormBase.php - Form constructor.
- WebformUiElementTypeFormBase::buildRow in modules/
webform_ui/ src/ Form/ WebformUiElementTypeFormBase.php - Build element type row.
- WebformUiElementTypeFormBase::getHeader in modules/
webform_ui/ src/ Form/ WebformUiElementTypeFormBase.php - Get table header.
File
- modules/
webform_ui/ src/ Form/ WebformUiElementTypeFormBase.php, line 298
Class
- WebformUiElementTypeFormBase
- Provides a abstract element type webform for a webform element.
Namespace
Drupal\webform_ui\FormCode
protected function isPreviewEnabled() {
if ($this
->isOffCanvasDialog()) {
return FALSE;
}
return $this->userData
->get('webform_ui', $this->currentUser
->id(), 'element_type_preview') ?: FALSE;
}