protected function PageVariant::urlRouteParameters in Page Manager 8.4
Same name and namespace in other branches
- 8 src/Entity/PageVariant.php \Drupal\page_manager\Entity\PageVariant::urlRouteParameters()
Gets an array of placeholders for this entity.
Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic.
Parameters
string $rel: The link relationship type, for example: canonical or edit-form.
Return value
array An array of URI placeholders.
Overrides EntityBase::urlRouteParameters
File
- src/
Entity/ PageVariant.php, line 395
Class
- PageVariant
- Defines the page variant entity.
Namespace
Drupal\page_manager\EntityCode
protected function urlRouteParameters($rel) {
$parameters = parent::urlRouteParameters($rel);
$parameters['page'] = $this
->get('page');
return $parameters;
}