You are here

public function TFTController::listDirectory in Taxonomy File Tree 8

Same name and namespace in other branches
  1. 3.x src/Controller/TFTController.php \Drupal\tft\Controller\TFTController::listDirectory()

Returns directory list.

Parameters

\Drupal\taxonomy\TermInterface|null $taxonomy_term: Term.

Return value

array Render array.

1 string reference to 'TFTController::listDirectory'
tft.routing.yml in ./tft.routing.yml
tft.routing.yml

File

src/Controller/TFTController.php, line 573

Class

TFTController
Class TFTController.

Namespace

Drupal\tft\Controller

Code

public function listDirectory(TermInterface $taxonomy_term = NULL) {
  $tid = isset($taxonomy_term) ? $taxonomy_term
    ->id() : 'all';
  return $this
    ->tft($tid);
}