Commit 3123bd8e authored by tim.plunkett's avatar tim.plunkett

QueryAlterableInterface was renamed to Drupal\Core\Database\Query\AlterableInterface.

parent 81961308
......@@ -5,6 +5,8 @@
* Relationship for groupwise maximum handler.
*/
use Drupal\Core\Database\Query\AlterableInterface;
/**
* Relationship handler that allows a groupwise maximum of the linked in table.
* For a definition, see:
......@@ -308,7 +310,7 @@ function left_query($options) {
*
* (Though why is the condition we get in a simple query 3 levels deep???)
*/
function alter_subquery_condition(QueryAlterableInterface $query, &$conditions) {
function alter_subquery_condition(AlterableInterface $query, &$conditions) {
foreach ($conditions as $condition_id => &$condition) {
// Skip the #conjunction element.
if (is_numeric($condition_id)) {
......
......@@ -9,6 +9,8 @@
* incoming page and block requests.
*/
use Drupal\Core\Database\Query\AlterableInterface;
/**
* Advertise the current views api version
*/
......@@ -2033,7 +2035,7 @@ function views_views_query_substitutions($view) {
* This is the hook_query_alter() for queries tagged by Views and is used to
* add in substitutions from hook_views_query_substitutions().
*/
function views_query_views_alter(QueryAlterableInterface $query) {
function views_query_views_alter(AlterableInterface $query) {
$substitutions = $query->getMetaData('views_substitutions');
$tables =& $query->getTables();
$where =& $query->conditions();
......@@ -2054,7 +2056,7 @@ function views_query_views_alter(QueryAlterableInterface $query) {
/**
* Replaces the substitutions recursive foreach condition.
*/
function _views_query_tag_alter_condition(QueryAlterableInterface $query, &$conditions, $substitutions) {
function _views_query_tag_alter_condition(AlterableInterface $query, &$conditions, $substitutions) {
foreach ($conditions as $condition_id => &$condition) {
if (is_numeric($condition_id)) {
if (is_string($condition['field'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment