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

8.0.x
Tim Plunkett 2012-05-15 12:44:31 -04:00
parent 8196130813
commit 3123bd8e6a
2 changed files with 7 additions and 3 deletions

View File

@ -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 @@ class views_handler_relationship_groupwise_max extends views_handler_relationshi
*
* (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)) {

View File

@ -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'])) {