You are here

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\Property

Code

public function getValues() {
  $routeName = $this
    ->getRouteMatch()
    ->getRouteName();
  return is_null($routeName) ?: array(
    $routeName,
  );
}