You are here

public function Webform::getPage in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 2111

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;
}