You are here

public function Webform::hasPreview in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 860

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function hasPreview() {
  return $this
    ->getSetting('preview') !== DRUPAL_DISABLED;
}