You are here

public function YamlForm::getPage in YAML Form 8

Get form wizard page.

Parameters

string|int $key: The name/key of a form wizard page.

Return value

array|null A form wizard page element.

Overrides YamlFormInterface::getPage

File

src/Entity/YamlForm.php, line 1113

Class

YamlForm
Defines the form entity.

Namespace

Drupal\yamlform\Entity

Code

public function getPage($key) {
  $pages = $this
    ->getPages();
  return isset($pages[$key]) ? $pages[$key] : NULL;
}