You are here

public function KanbanLogListBuilder::load in Content Planner 8

Custom load of entities.

Return value

\Drupal\Core\Entity\EntityInterface[] Returns an array with the entities.

Overrides EntityListBuilder::load

File

modules/content_kanban/src/KanbanLogListBuilder.php, line 22

Class

KanbanLogListBuilder
Defines a class to build a listing of Kanban Log entities.

Namespace

Drupal\content_kanban

Code

public function load() {
  $query = \Drupal::entityQuery('content_kanban_log');
  $query
    ->sort('created', 'DESC');
  $result = $query
    ->execute();
  return $this->storage
    ->loadMultiple($result);
}