"Where" is a protected property

Created on 20 November 2024, about 18 hours ago

API page: https://api.drupal.org/api/drupal/core%21modules%21views%21views.api.php...

In the example code we have $query->where but "where" cannot be used in a hook_views_query_alter because it's a protected property:

Error: Cannot access protected property Drupal\search_api\Plugin\views\query\SearchApiQuery::$where

📌 Task
Status

Active

Version

10.3

Component

documentation

Created by

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

Comments & Activities

Production build 0.71.5 2024