getLocalTaskManager example


  protected function assertLocalTasks($route_name$expected_tasks$route_params = []) {

    $directory_list = [];
    foreach ($this->directoryList as $key => $value) {
      $directory_list[$key] = $this->root . '/' . $value;
    }

    $manager = $this->getLocalTaskManager($directory_list$route_name$route_params);

    $tmp_tasks = $manager->getLocalTasksForRoute($route_name);

    // At this point we're just testing existence so pull out keys and then     // compare.     //     // Deeper testing would require a functioning factory which because we are     // using the DefaultPluginManager base means we get into dependency soup     // because its factories create method and pulling services off the \Drupal     // container.     $tasks = [];
    
Home | Imprint | This part of the site doesn't use cookies.