public function Webform::getPage in Webform 8.5
Same name and namespace in other branches
- 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\EntityCode
public function getPage($operation, $key) {
$pages = $this
->getPages($operation);
return isset($pages[$key]) ? $pages[$key] : NULL;
}