You are here

public function NodeOrderListController::listing in Node Order 8

Provides the listing page for nodes in taxonomy.

Parameters

\Drupal\taxonomy\Entity\Term $taxonomy_term: Taxonomy term ID.

Return value

array A render array.

1 string reference to 'NodeOrderListController::listing'
nodeorder.routing.yml in ./nodeorder.routing.yml
nodeorder.routing.yml

File

src/Controller/NodeOrderListController.php, line 57

Class

NodeOrderListController
Defines a generic controller to list entities.

Namespace

Drupal\nodeorder\Controller

Code

public function listing(Term $taxonomy_term) {
  $entity_type = $this->nodeStorage
    ->getEntityType();
  return NodeOrderListBuilder::createInstance($this->container, $entity_type, $taxonomy_term)
    ->render();
}