You are here

public function ListPlugins::title in Plugin 8.2

Returns the route's title.

Parameters

\Drupal\plugin\PluginType\PluginTypeInterface $plugin_type: The plugin type.

Return value

string

1 string reference to 'ListPlugins::title'
plugin.routing.yml in ./plugin.routing.yml
plugin.routing.yml

File

src/Controller/ListPlugins.php, line 57

Class

ListPlugins
Handles the "list plugin" route.

Namespace

Drupal\plugin\Controller

Code

public function title($plugin_type) {
  return $this
    ->t('%label plugins', [
    '%label' => $plugin_type
      ->getLabel(),
  ]);
}