You are here

public function Webform::hasPage in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Entity/Webform.php \Drupal\webform\Entity\Webform::hasPage()

Determine if the webform has page or is attached to other entities.

Return value

bool TRUE if the webform is a page with dedicated path.

Overrides WebformInterface::hasPage

File

src/Entity/Webform.php, line 773

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function hasPage() {
  $settings = $this
    ->getSettings();
  return $settings['page'] ? TRUE : FALSE;
}