public function Webform::hasPage in Webform 8.5
Same name and namespace in other branches
- 6.x 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 772
Class
- Webform
- Defines the webform entity.
Namespace
Drupal\webform\EntityCode
public function hasPage() {
$settings = $this
->getSettings();
return $settings['page'] ? TRUE : FALSE;
}