/** * {@inheritdoc} */ public function render(ResultRow $values) { $entity = $this->getEntity($values); $operations = $this->entityManager->getListBuilder($entity->getEntityTypeId())->getOperations($entity); if ($this->options['destination']) { foreach ($operations as &$operation) { if (!isset($operation['query'])) { $operation['query'] = array(); } $operation['query'] += $this->getDestinationArray(); } } $build = array('#type' => 'operations', '#links' => $operations); return $build; }
/** * {@inheritdoc} */ public function getListBuilder($entity_type) { return $this->entityManager->getListBuilder($entity_type); }