Update to drupal-org-drupal 8.0.0-rc2. For more information, see https://www.drupal.org/node/2598668
This commit is contained in:
parent
f32e58e4b1
commit
8e18df8c36
3062 changed files with 15044 additions and 172506 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
(function ($, Drupal, drupalSettings) {
|
||||
|
||||
"use strict";
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Attaches the AJAX behavior to exposed filters forms and key View links.
|
||||
|
@ -56,7 +56,7 @@
|
|||
|
||||
// If there are multiple views this might've ended up showing up multiple
|
||||
// times.
|
||||
if (ajax_path.constructor.toString().indexOf("Array") !== -1) {
|
||||
if (ajax_path.constructor.toString().indexOf('Array') !== -1) {
|
||||
ajax_path = ajax_path[0];
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
(function ($, Drupal, drupalSettings) {
|
||||
|
||||
"use strict";
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* @namespace
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\views;
|
||||
|
||||
use Drupal\Core\Extension\ModuleHandlerInterface;
|
||||
use Drupal\views\ViewExecutable;
|
||||
|
||||
/**
|
||||
* This tool is a small plugin manager to perform analysis on a view and
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Annotation;
|
||||
|
||||
use Drupal\views\Annotation\ViewsPluginAnnotationBase;
|
||||
|
||||
/**
|
||||
* Defines a Plugin annotation object for views access plugins.
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Annotation;
|
||||
|
||||
use Drupal\views\Annotation\ViewsPluginAnnotationBase;
|
||||
|
||||
/**
|
||||
* Defines a Plugin annotation object for views argument default plugins.
|
||||
*
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Annotation;
|
||||
|
||||
use Drupal\views\Annotation\ViewsPluginAnnotationBase;
|
||||
|
||||
/**
|
||||
* Defines a Plugin annotation object for views argument validator plugins.
|
||||
*
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Annotation;
|
||||
|
||||
use Drupal\views\Annotation\ViewsPluginAnnotationBase;
|
||||
|
||||
/**
|
||||
* Defines a Plugin annotation object for views cache plugins.
|
||||
*
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Annotation;
|
||||
|
||||
use Drupal\views\Annotation\ViewsPluginAnnotationBase;
|
||||
|
||||
/**
|
||||
* Defines a Plugin annotation object for views display plugins.
|
||||
*
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Annotation;
|
||||
|
||||
use Drupal\views\Annotation\ViewsPluginAnnotationBase;
|
||||
|
||||
/**
|
||||
* Defines a Plugin annotation object for views exposed form plugins.
|
||||
*
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Annotation;
|
||||
|
||||
use Drupal\views\Annotation\ViewsPluginAnnotationBase;
|
||||
|
||||
/**
|
||||
* Defines a Plugin annotation object for views pager plugins.
|
||||
*
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Annotation;
|
||||
|
||||
use Drupal\views\Annotation\ViewsPluginAnnotationBase;
|
||||
|
||||
/**
|
||||
* Defines a Plugin annotation object for views query plugins.
|
||||
*
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Annotation;
|
||||
|
||||
use Drupal\views\Annotation\ViewsPluginAnnotationBase;
|
||||
|
||||
/**
|
||||
* Defines a Plugin annotation object for views row plugins.
|
||||
*
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Annotation;
|
||||
|
||||
use Drupal\views\Annotation\ViewsPluginAnnotationBase;
|
||||
|
||||
/**
|
||||
* Defines a Plugin annotation object for views style plugins.
|
||||
*
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Annotation;
|
||||
|
||||
use Drupal\views\Annotation\ViewsPluginAnnotationBase;
|
||||
|
||||
/**
|
||||
* Defines a Plugin annotation object for views wizard plugins.
|
||||
*
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\views\Controller;
|
||||
|
||||
use Drupal\Component\Utility\UrlHelper;
|
||||
use Drupal\Core\Ajax\AjaxResponse;
|
||||
use Drupal\Core\Ajax\ReplaceCommand;
|
||||
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
|
||||
use Drupal\Core\Entity\EntityStorageInterface;
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\views\Entity\Render;
|
||||
|
||||
use Drupal\Core\Entity\Entity\EntityViewDisplay;
|
||||
use Drupal\Core\Entity\EntityInterface;
|
||||
use Drupal\Core\Entity\EntityManagerInterface;
|
||||
use Drupal\Core\Entity\EntityTypeInterface;
|
||||
use Drupal\Core\Language\LanguageManagerInterface;
|
||||
|
|
|
@ -15,8 +15,6 @@ use Drupal\views\Plugin\views\display\DisplayRouterInterface;
|
|||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Views;
|
||||
use Symfony\Component\Routing\RouteCollection;
|
||||
use Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent;
|
||||
use Symfony\Component\HttpKernel\KernelEvents;
|
||||
|
||||
/**
|
||||
* Builds up the routes of all views.
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\views\Form;
|
||||
|
||||
use Drupal\Component\Utility\Html;
|
||||
use Drupal\Component\Utility\SafeMarkup;
|
||||
use Drupal\Core\Form\FormBase;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\Core\Url;
|
||||
|
|
|
@ -8,10 +8,8 @@
|
|||
namespace Drupal\views\Plugin\Block;
|
||||
|
||||
use Drupal\Component\Utility\Xss;
|
||||
use Drupal\Core\Config\Entity\Query\Query;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\Element\View;
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
|
||||
/**
|
||||
* Provides a generic Views block.
|
||||
|
|
|
@ -12,7 +12,6 @@ use Drupal\Core\State\StateInterface;
|
|||
use Drupal\Component\Plugin\Derivative\DeriverBase;
|
||||
use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;
|
||||
use Drupal\Core\Routing\RouteProviderInterface;
|
||||
use Drupal\views\ViewEntityInterface;
|
||||
use Drupal\views\Views;
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ use Drupal\Core\Session\AccountInterface;
|
|||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\Render\ViewsRenderPipelineMarkup;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\views\Views;
|
||||
use Drupal\views\ViewsData;
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Plugin\views\area;
|
||||
|
||||
use Drupal\Component\Uuid\Uuid;
|
||||
use Drupal\Core\Entity\EntityManagerInterface;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
|
|
|
@ -14,7 +14,6 @@ use Drupal\Core\Cache\Cache;
|
|||
use Drupal\Core\Cache\CacheableDependencyInterface;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\Core\Render\Element;
|
||||
use Drupal\views\Plugin\views\PluginBase;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\HandlerBase;
|
||||
|
|
|
@ -7,13 +7,11 @@
|
|||
|
||||
namespace Drupal\views\Plugin\views\argument;
|
||||
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
|
||||
use Drupal\Core\Routing\RouteMatchInterface;
|
||||
use Drupal\node\NodeInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
* Abstract argument handler for dates.
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\views\Plugin\views\argument_default;
|
||||
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
|
||||
use Drupal\views\Plugin\views\PluginBase;
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use Drupal\Core\Form\FormStateInterface;
|
|||
use Drupal\Core\Path\AliasManagerInterface;
|
||||
use Drupal\Core\Path\CurrentPathStack;
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
* Default argument plugin to use the raw value from the URL.
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\views\Plugin\views\argument_validator;
|
||||
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
|
||||
use Drupal\views\Plugin\views\PluginBase;
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Plugin\views\argument_validator;
|
||||
|
||||
use Drupal\Core\Config\Entity\ConfigEntityInterface;
|
||||
use Drupal\Core\Entity\EntityInterface;
|
||||
use Drupal\Core\Entity\EntityManagerInterface;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
|
|
|
@ -12,7 +12,6 @@ use Drupal\Core\Cache\CacheableMetadata;
|
|||
use Drupal\views\Plugin\views\PluginBase;
|
||||
use Drupal\Core\Database\Query\Select;
|
||||
use Drupal\views\ResultRow;
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
|
||||
/**
|
||||
* @defgroup views_cache_plugins Views cache plugins
|
||||
|
|
|
@ -17,15 +17,12 @@ use Drupal\Core\Form\FormStateInterface;
|
|||
use Drupal\Core\Language\LanguageInterface;
|
||||
use Drupal\Core\Plugin\PluginDependencyTrait;
|
||||
use Drupal\Core\Session\AccountInterface;
|
||||
use Drupal\Core\Theme\Registry;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\views\Form\ViewsForm;
|
||||
use Drupal\views\Plugin\views\area\AreaPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\PluginBase;
|
||||
use Drupal\views\Views;
|
||||
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
|
||||
use Symfony\Component\DependencyInjection\Exception\RuntimeException as DependencyInjectionRuntimeException;
|
||||
|
||||
/**
|
||||
* Base class for views display plugins.
|
||||
|
|
|
@ -37,8 +37,21 @@ use Drupal\Core\Session\AccountInterface;
|
|||
*/
|
||||
interface DisplayPluginInterface {
|
||||
|
||||
/**
|
||||
* Initializes the display plugin.
|
||||
*
|
||||
* @param \Drupal\views\ViewExecutable $view
|
||||
* The views executable.
|
||||
* @param array $display
|
||||
* The display that will be populated and attached to the view.
|
||||
* @param array $options
|
||||
* (optional) The options for the display plugin. Defaults to NULL.
|
||||
*/
|
||||
public function initDisplay(ViewExecutable $view, array &$display, array &$options = NULL);
|
||||
|
||||
/**
|
||||
* Destroys the display's components and the display itself.
|
||||
*/
|
||||
public function destroy();
|
||||
|
||||
/**
|
||||
|
|
|
@ -12,7 +12,6 @@ use Drupal\Core\Cache\CacheableResponse;
|
|||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Views;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,8 +13,6 @@ use Drupal\Core\Form\FormStateInterface;
|
|||
use Drupal\Core\State\StateInterface;
|
||||
use Drupal\Core\Routing\RouteProviderInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
use Symfony\Component\Routing\Route;
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\views\Plugin\views\display;
|
||||
|
||||
use Drupal\Component\Utility\UrlHelper;
|
||||
use Drupal\Core\Access\AccessManagerInterface;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\Core\Language\LanguageInterface;
|
||||
use Drupal\Core\Routing\UrlGeneratorTrait;
|
||||
|
@ -17,7 +16,6 @@ use Drupal\Core\Routing\RouteCompiler;
|
|||
use Drupal\Core\Routing\RouteProviderInterface;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\views\Views;
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\views\Plugin\views\display_extender;
|
||||
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\PluginBase;
|
||||
|
||||
/**
|
||||
|
|
|
@ -12,9 +12,6 @@ use Drupal\Core\Cache\Cache;
|
|||
use Drupal\Core\Cache\CacheableDependencyInterface;
|
||||
use Drupal\Core\Form\FormState;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\Form\ViewsExposedForm;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\Plugin\views\PluginBase;
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,7 +9,6 @@ namespace Drupal\views\Plugin\views\field;
|
|||
|
||||
use Drupal\Core\Entity\EntityManagerInterface;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\views\ResultRow;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
|
|
|
@ -8,13 +8,11 @@
|
|||
namespace Drupal\views\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Utility\Html;
|
||||
use Drupal\Component\Utility\NestedArray;
|
||||
use Drupal\Component\Utility\SafeMarkup;
|
||||
use Drupal\Component\Render\MarkupInterface;
|
||||
use Drupal\Component\Utility\Unicode;
|
||||
use Drupal\Component\Utility\UrlHelper;
|
||||
use Drupal\Component\Utility\Xss;
|
||||
use Drupal\Core\Cache\Cache;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\Core\Render\Renderer;
|
||||
use Drupal\Core\Url as CoreUrl;
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
namespace Drupal\views\Plugin\views\field;
|
||||
|
||||
use Drupal\Core\Access\AccessManagerInterface;
|
||||
use Drupal\Core\Access\AccessResultInterface;
|
||||
use Drupal\Core\Cache\CacheableDependencyInterface;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\Core\Render\BubbleableMetadata;
|
||||
use Drupal\Core\Routing\RedirectDestinationTrait;
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Utility\SafeMarkup;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\ResultRow;
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Plugin\views\filter;
|
||||
|
||||
use Drupal\Core\Config\Entity\ConfigEntityInterface;
|
||||
use Drupal\Core\Entity\EntityManagerInterface;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Plugin\views\filter;
|
||||
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Plugin\views\filter;
|
||||
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,7 +9,6 @@ namespace Drupal\views\Plugin\views\pager;
|
|||
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\Plugin\views\PluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
|
||||
/**
|
||||
* @defgroup views_pager_plugins Views pager plugins
|
||||
|
|
|
@ -140,7 +140,7 @@ abstract class SqlBase extends PagerPluginBase implements CacheableDependencyInt
|
|||
|
||||
$form['expose']['items_per_page_options_all'] = array(
|
||||
'#type' => 'checkbox',
|
||||
'#title' => $this->t('Allow user to to display all items'),
|
||||
'#title' => $this->t('Allow user to display all items'),
|
||||
'#default_value' => $this->options['expose']['items_per_page_options_all'],
|
||||
);
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ use Drupal\Core\Cache\Cache;
|
|||
use Drupal\Core\Cache\CacheableDependencyInterface;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\Plugin\views\PluginBase;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Views;
|
||||
|
||||
|
|
|
@ -8,9 +8,6 @@
|
|||
namespace Drupal\views\Plugin\views\relationship;
|
||||
|
||||
use Drupal\views\Plugin\ViewsHandlerManager;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\Plugin\views\relationship\RelationshipPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Views;
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ namespace Drupal\views\Plugin\views\row;
|
|||
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\Plugin\views\PluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Views;
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\views\Plugin\views\style;
|
||||
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\Plugin\views\style\StylePluginBase;
|
||||
|
||||
/**
|
||||
* The default style plugin for summaries.
|
||||
|
|
|
@ -7,13 +7,10 @@
|
|||
|
||||
namespace Drupal\views\Plugin\views\style;
|
||||
|
||||
use Drupal\Component\Plugin\Discovery\DiscoveryInterface;
|
||||
use Drupal\Component\Utility\Html;
|
||||
use Drupal\Core\Cache\CacheableDependencyInterface;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\Plugin\views\wizard\WizardInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
* Style plugin to render each item as a row in a table.
|
||||
|
|
|
@ -15,7 +15,6 @@ use Drupal\views\Views;
|
|||
use Drupal\views_ui\ViewUI;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\Plugin\views\PluginBase;
|
||||
use Drupal\views\Plugin\views\wizard\WizardInterface;
|
||||
|
||||
/**
|
||||
* @defgroup views_wizard_plugins Views wizard plugins
|
||||
|
|
|
@ -10,7 +10,6 @@ namespace Drupal\views\Tests\EventSubscriber;
|
|||
use Drupal\Core\Entity\EntityTypeEvent;
|
||||
use Drupal\Core\Entity\EntityTypeEvents;
|
||||
use Drupal\system\Tests\Entity\EntityDefinitionTestTrait;
|
||||
use Drupal\views\Entity\View;
|
||||
use Drupal\views\Tests\ViewKernelTestBase;
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Tests\Handler;
|
||||
|
||||
use Drupal\views\Tests\ViewTestData;
|
||||
|
||||
/**
|
||||
* Tests the dropbutton field handler.
|
||||
*
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\views\Tests\Handler;
|
||||
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\entity_test\Entity\EntityTest;
|
||||
use Drupal\language\Entity\ConfigurableLanguage;
|
||||
use Drupal\node\Entity\Node;
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Tests\Plugin;
|
||||
|
||||
use Drupal\Core\Cache\Cache;
|
||||
use Drupal\views\Tests\ViewTestData;
|
||||
use Drupal\views\Views;
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Tests\Plugin;
|
||||
|
||||
use Drupal\views\Tests\Plugin\PluginTestBase;
|
||||
use Drupal\views\Views;
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,6 @@ use Drupal\Core\Menu\MenuTreeParameters;
|
|||
use Drupal\Core\Session\AnonymousUserSession;
|
||||
use Drupal\views\Views;
|
||||
use Drupal\views\Tests\ViewKernelTestBase;
|
||||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ namespace Drupal\views\Tests\Plugin;
|
|||
|
||||
use Drupal\views\Views;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
* Tests the grid style plugin.
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Tests\Plugin;
|
||||
|
||||
use Drupal\Core\DependencyInjection\ContainerBuilder;
|
||||
use Drupal\views\Plugin\Block\ViewsBlock;
|
||||
use Drupal\views\Tests\ViewTestData;
|
||||
use Drupal\views\Tests\ViewKernelTestBase;
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\views\Tests\Plugin;
|
||||
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
use Drupal\views\Views;
|
||||
|
||||
/**
|
||||
* Tests Views forms functionality.
|
||||
|
|
|
@ -8,10 +8,8 @@
|
|||
namespace Drupal\views\Tests;
|
||||
|
||||
use Drupal\Core\Database\Query\SelectInterface;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\ViewsBundle;
|
||||
use Drupal\simpletest\KernelTestBase;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
* Defines a base class for Views unit testing.
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Tests;
|
||||
|
||||
use Drupal\views\Tests\ViewTestBase;
|
||||
use Drupal\views\Views;
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\views\Tests;
|
||||
|
||||
use Drupal\views\Plugin\views\field\Field;
|
||||
use Drupal\views\ViewExecutable;
|
||||
|
||||
/**
|
||||
* Provides a class for assertions to check for the expected result of a View.
|
||||
|
|
|
@ -8,11 +8,8 @@
|
|||
namespace Drupal\views\Tests;
|
||||
|
||||
use Drupal\Core\Entity\EntityTypeInterface;
|
||||
use Drupal\Core\Config\Entity\ConfigEntityStorage;
|
||||
use Drupal\views\Entity\View;
|
||||
use Drupal\views\Plugin\views\display\Page;
|
||||
use Drupal\views\Plugin\views\display\DefaultDisplay;
|
||||
use Drupal\views\Plugin\views\display\Feed;
|
||||
use Drupal\views\Views;
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
namespace Drupal\views\Tests;
|
||||
|
||||
use Drupal\views\Tests\ViewTestBase;
|
||||
use Drupal\views\Views;
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,15 +8,11 @@
|
|||
namespace Drupal\views;
|
||||
|
||||
use Drupal\Component\Utility\Html;
|
||||
use Drupal\Core\Cache\Cache;
|
||||
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
|
||||
use Drupal\Core\Form\FormState;
|
||||
use Drupal\Core\Routing\RouteProviderInterface;
|
||||
use Drupal\Core\Session\AccountInterface;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\views\Plugin\views\display\DisplayRouterInterface;
|
||||
use Drupal\views\Plugin\views\query\QueryPluginBase;
|
||||
use Drupal\views\ViewEntityInterface;
|
||||
use Drupal\Component\Utility\Tags;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
|
|
@ -9,7 +9,6 @@ namespace Drupal\views;
|
|||
|
||||
use Drupal\Core\Routing\RouteProviderInterface;
|
||||
use Drupal\Core\Session\AccountInterface;
|
||||
use Drupal\views\ViewEntityInterface;
|
||||
use Symfony\Component\HttpFoundation\RequestStack;
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* Helper module for Views tests.
|
||||
*/
|
||||
|
||||
use Drupal\views\ViewExecutable;
|
||||
|
||||
/**
|
||||
* Access callback for the generic handler test.
|
||||
*
|
||||
|
|
|
@ -9,7 +9,6 @@ namespace Drupal\Tests\views\Unit\Plugin\field {
|
|||
|
||||
use Drupal\Core\GeneratedUrl;
|
||||
use Drupal\Core\Language\Language;
|
||||
use Drupal\Core\Render\RendererInterface;
|
||||
use Drupal\Core\Render\Markup;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\Core\Utility\LinkGenerator;
|
||||
|
|
|
@ -11,17 +11,13 @@
|
|||
|
||||
use Drupal\Component\Utility\Html;
|
||||
use Drupal\Component\Utility\SafeMarkup;
|
||||
use Drupal\Core\Cache\Cache;
|
||||
use Drupal\Core\Database\Query\AlterableInterface;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\Core\Render\Element;
|
||||
use Drupal\Core\Routing\RouteMatchInterface;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\views\Plugin\Derivative\ViewsLocalTask;
|
||||
use Drupal\Core\Template\AttributeArray;
|
||||
use Drupal\views\Plugin\views\display\Page;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\Component\Plugin\Exception\PluginException;
|
||||
use Drupal\views\Entity\View;
|
||||
use Drupal\views\Render\ViewsRenderPipelineMarkup;
|
||||
use Drupal\views\Views;
|
||||
|
|
|
@ -998,7 +998,7 @@ function template_preprocess_views_mini_pager(&$variables) {
|
|||
$variables['items']['next']['attributes'] = new Attribute();
|
||||
}
|
||||
|
||||
// This is is based on the entire current query string. We need to ensure
|
||||
// This is based on the entire current query string. We need to ensure
|
||||
// cacheability is affected accordingly.
|
||||
$variables['#cache']['contexts'][] = 'url.query_args';
|
||||
}
|
||||
|
|
Reference in a new issue