diff --git a/core/modules/views/src/Plugin/views/field/EntityField.php b/core/modules/views/src/Plugin/views/field/EntityField.php index 079f505..af6c1c1 100644 --- a/core/modules/views/src/Plugin/views/field/EntityField.php +++ b/core/modules/views/src/Plugin/views/field/EntityField.php @@ -335,8 +335,8 @@ protected function getFieldStorageDefinition() { } elseif (isset($this->definition['field_name']) && isset($base_fields[$this->definition['field_name']])) { // Add support for base field definitions which are compatible with - // storage definitions, for fields which are computed and do not have - // storage. + // storage definitions, for fields which are computed (such as + // moderation_state) and do not have storage. $field_storage = $base_fields[$this->definition['field_name']]; } return $field_storage; diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.computed_field_view.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.computed_field_view.yml index f713a05..d8de3f1 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.computed_field_view.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.computed_field_view.yml @@ -168,4 +168,4 @@ display: - 'languages:language_content' - 'languages:language_interface' - url.query_args - tags: { } \ No newline at end of file + tags: { } diff --git a/core/modules/views/tests/src/Kernel/Handler/ComputedFieldTest.php b/core/modules/views/tests/src/Kernel/Handler/ComputedFieldTest.php index e934e1b..8f85f69 100644 --- a/core/modules/views/tests/src/Kernel/Handler/ComputedFieldTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/ComputedFieldTest.php @@ -1,6 +1,7 @@