You are here

public function PmDashboardController::dashboard in Drupal PM (Project Management) 4.x

Dashboard.

Return value

string Return Hello string.

1 string reference to 'PmDashboardController::dashboard'
pm.routing.yml in ./pm.routing.yml
pm.routing.yml

File

src/Controller/PmDashboardController.php, line 68

Class

PmDashboardController
Dashboard Controller.

Namespace

Drupal\pm\Controller

Code

public function dashboard() {
  return [
    'dashboard' => [
      '#theme' => 'pm_dashboard',
      '#items' => $this
        ->getDashboardLinks(),
    ],
    '#cache' => [
      'max-age' => 0,
    ],
  ];
}