public function Webform::hasPreview in Webform 8.5
Same name and namespace in other branches
- 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::hasPreview()
 
Determine if the webform has preview page.
Return value
bool TRUE if the webform has preview page.
Overrides WebformInterface::hasPreview
File
- src/
Entity/ Webform.php, line 859  
Class
- Webform
 - Defines the webform entity.
 
Namespace
Drupal\webform\EntityCode
public function hasPreview() {
  return $this
    ->getSetting('preview') !== DRUPAL_DISABLED;
}