You are here

public function PatternsLibraryController::title in UI Patterns 8

Title callback.

Return value

string Pattern label.

1 string reference to 'PatternsLibraryController::title'
ui_patterns_library.routing.yml in modules/ui_patterns_library/ui_patterns_library.routing.yml
modules/ui_patterns_library/ui_patterns_library.routing.yml

File

modules/ui_patterns_library/src/Controller/PatternsLibraryController.php, line 44

Class

PatternsLibraryController
Class PatternLibraryController.

Namespace

Drupal\ui_patterns_library\Controller

Code

public function title($name) {
  return $this->patternsManager
    ->getDefinition($name)
    ->getLabel();
}