diff -u b/core/modules/views/lib/Drupal/views/Plugin/views/field/EntityOperations.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/EntityOperations.php --- b/core/modules/views/lib/Drupal/views/Plugin/views/field/EntityOperations.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/EntityOperations.php @@ -91,23 +91,21 @@ */ public function render(ResultRow $values) { $entity = $this->getEntity($values); - if ($entity) { - $operations = $this->entityManager->getListController($this->getEntityType())->getOperations($entity); - if ($this->options['destination']) { - foreach ($operations as &$operation) { - if (!isset($operation['options']['query'])) { - $operation['options']['query'] = array(); - } - $operation['options']['query'] += $this->drupalGetDestination(); + $operations = $this->entityManager->getListController($this->getEntityType())->getOperations($entity); + if ($this->options['destination']) { + foreach ($operations as &$operation) { + if (!isset($operation['options']['query'])) { + $operation['options']['query'] = array(); } + $operation['options']['query'] += $this->drupalGetDestination(); } - $build = array( - '#type' => 'operations', - '#links' => $operations, - ); - - return $build; } + $build = array( + '#type' => 'operations', + '#links' => $operations, + ); + + return $build; } /**