public function DrupalRouteName::getValues in ThemeKey 8
Return value
array array of drupal:route_name values
Overrides PropertyInterface::getValues
File
- src/
Plugin/ Property/ DrupalRouteName.php, line 28 - Contains \Drupal\themekey\Plugin\Property\DrupalRouteName.
Class
- DrupalRouteName
- Provides a 'query param' property.
Namespace
Drupal\themekey\Plugin\PropertyCode
public function getValues() {
$routeName = $this
->getRouteMatch()
->getRouteName();
return is_null($routeName) ?: array(
$routeName,
);
}