protected function Page::filterParameters in Page Manager 8.4
Same name and namespace in other branches
- 8 src/Entity/Page.php \Drupal\page_manager\Entity\Page::filterParameters()
Filters the parameters to remove any without a valid type.
Return value
$this
1 call to Page::filterParameters()
- Page::preSave in src/
Entity/ Page.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ Page.php, line 319
Class
- Page
- Defines a Page entity class.
Namespace
Drupal\page_manager\EntityCode
protected function filterParameters() {
$names = $this
->getParameterNames();
foreach ($this
->get('parameters') as $name => $parameter) {
// Remove parameters without any type, or which are no longer valid.
if (empty($parameter['type']) || !in_array($name, $names)) {
$this
->removeParameter($name);
}
}
return $this;
}