You are here

public function Webform::hasPreview in Webform 8.5

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

Code

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