Ejemplo n.º 1
0
 /**
  * {@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;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getListBuilder($entity_type)
 {
     return $this->entityManager->getListBuilder($entity_type);
 }