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'
File
- src/
Controller/ ListPlugins.php, line 57
Class
- ListPlugins
- Handles the "list plugin" route.
Namespace
Drupal\plugin\ControllerCode
public function title($plugin_type) {
return $this
->t('%label plugins', [
'%label' => $plugin_type
->getLabel(),
]);
}