public function Page::getParameterNames in Page Manager 8
Same name and namespace in other branches
- 8.4 src/Entity/Page.php \Drupal\page_manager\Entity\Page::getParameterNames()
Gets the names of all parameters for this page.
Return value
string[]
Overrides PageInterface::getParameterNames
2 calls to Page::getParameterNames()
- Page::filterParameters in src/
Entity/ Page.php - Filters the parameters to remove any without a valid type.
- Page::getParameters in src/
Entity/ Page.php - Returns the parameter context value objects for this page entity.
File
- src/
Entity/ Page.php, line 303 - Contains \Drupal\page_manager\Entity\Page.
Class
- Page
- Defines a Page entity class.
Namespace
Drupal\page_manager\EntityCode
public function getParameterNames() {
if (preg_match_all('|\\{(\\w+)\\}|', $this
->getPath(), $matches)) {
return $matches[1];
}
return [];
}