Fix access level on $offset of the views query plugin

Created on 9 May 2023, over 1 year ago
Updated 19 December 2023, 11 months ago

Problem/Motivation

Drupal 10 alpha7 introduced the $offset property to the QueryPluginBase as a public int property. (https://git.drupalcode.org/project/drupal/-/blob/10.0.0-alpha7/core/modu...)

That produces the following error:

Fatal error: Access level to Drupal\elasticsearch_connector_views\Plugin\views\query\ElasticsearchViewsQuery::$offset must be public (as in class Drupal\views\Plugin\views\query\QueryPluginBase) in /app/web/modules/contrib/elasticsearch_connector/modules/elasticsearch_connector_views/src/Plugin/views/query/ElasticsearchViewsQuery.php on line 26
1

Steps to reproduce

  1. Enable the Elasticsearch Connector Views module.
  2. Create a view selecting a elastic search index.
  3. The error should appear when saving the view.

Proposed resolution

Modify ElasticsearchViewsQuery.php to support the changes introduced by the Drupal Core.

🐛 Bug report
Status

Needs review

Version

7.0

Component

Code

Created by

🇨🇴Colombia jidrone

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024