diff --git a/core/modules/views/src/EntityViewsData.php b/core/modules/views/src/EntityViewsData.php index a471f4c..0efd164 100644 --- a/core/modules/views/src/EntityViewsData.php +++ b/core/modules/views/src/EntityViewsData.php @@ -147,15 +147,14 @@ public function getViewsData() { ); } } - if ($this->entityType->hasListBuilderClass()) { - $data[$base_table]['operations'] = array( - 'field' => array( - 'title' => $this->t('Operations links'), - 'help' => $this->t('Provides links to perform entity operations.'), - 'id' => 'entity_operations', - ), - ); - } + + $data[$base_table]['operations'] = array( + 'field' => array( + 'title' => $this->t('Operations links'), + 'help' => $this->t('Provides links to perform entity operations.'), + 'id' => 'entity_operations', + ), + ); // Setup relations to the revisions/property data. if ($data_table) { diff --git a/core/modules/views/src/Plugin/views/field/EntityOperations.php b/core/modules/views/src/Plugin/views/field/EntityOperations.php index 947a1f3..a3b1048 100644 --- a/core/modules/views/src/Plugin/views/field/EntityOperations.php +++ b/core/modules/views/src/Plugin/views/field/EntityOperations.php @@ -49,7 +49,12 @@ public function __construct(array $configuration, $plugin_id, array $plugin_defi * {@inheritdoc} */ public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { - return new static($configuration, $plugin_id, $plugin_definition, $container->get('entity.manager')); + return new static( + $configuration, + $plugin_id, + $plugin_definition, + $container->get('entity.manager') + ); } /** @@ -67,7 +72,6 @@ public function defineOptions() { $options['destination'] = array( 'default' => TRUE, - 'bool' => TRUE, ); return $options; diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_operations.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_operations.yml index 0eeb8a5..205e8ce 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_operations.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_operations.yml @@ -6,7 +6,6 @@ dependencies: - user id: test_entity_operations label: test_entity_operations -title: test_entity_operations module: views description: '' tag: '' @@ -180,7 +179,7 @@ display: plugin_id: date entity_type: node entity_field: created - title: test_dropbutton + title: test_entity_operations field_langcode: '***LANGUAGE_language_content***' field_langcode_add_to_query: null page_1: