You are here

public function YamlForm::hasPage in YAML Form 8

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

Return value

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

Overrides YamlFormInterface::hasPage

File

src/Entity/YamlForm.php, line 368

Class

YamlForm
Defines the form entity.

Namespace

Drupal\yamlform\Entity

Code

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