You are here

public function Webform::getPage in Webform 8.5

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

Get webform wizard page.

Parameters

string $operation: Operation being performed.

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

Return value

array|null A webform wizard page element.

Overrides WebformInterface::getPage

File

src/Entity/Webform.php, line 2110

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

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