You are here

protected function EdgeEntityListBuilder::renderUsingViewMode in Apigee Edge 8

Renders a list of entities using the provided view mode.

Parameters

string $view_mode: The view mode.

Return value

array A renderable array.

1 call to EdgeEntityListBuilder::renderUsingViewMode()
EdgeEntityListBuilder::render in src/Entity/ListBuilder/EdgeEntityListBuilder.php
Builds the entity listing as renderable array for table.html.twig.

File

src/Entity/ListBuilder/EdgeEntityListBuilder.php, line 154

Class

EdgeEntityListBuilder
Default entity list builder for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\ListBuilder

Code

protected function renderUsingViewMode($view_mode) : array {
  return [
    '#type' => 'apigee_entity_list',
    '#entities' => $this
      ->load(),
    '#entity_type' => $this->entityType,
    '#view_mode' => $view_mode,
  ];
}