Issue #1744248 by tim.plunkett: Plugin and Handler should be PluginBase and HandlerBase.

8.0.x
Tim Plunkett 2012-08-22 15:09:54 +02:00
parent e542b7a282
commit 0c9c847e58
21 changed files with 47 additions and 48 deletions

View File

@ -2,15 +2,15 @@
/**
* @file
* Definition of Drupal\views\Plugin\views\Handler
* Definition of Drupal\views\Plugin\views\HandlerBase.
*/
namespace Drupal\views\Plugin\views;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\PluginBase;
use Drupal\views\View;
abstract class Handler extends Plugin {
abstract class HandlerBase extends PluginBase {
/**
* Where the $query object will reside:

View File

@ -2,14 +2,14 @@
/**
* @file
* Definition of Drupal\views\Plugin\views\Plugin.
* Definition of Drupal\views\Plugin\views\PluginBase.
*/
namespace Drupal\views\Plugin\views;
use Drupal\Component\Plugin\PluginBase;
use Drupal\Component\Plugin\PluginBase as ComponentPluginBase;
abstract class Plugin extends PluginBase {
abstract class PluginBase extends ComponentPluginBase {
/**
* Except for displays, options for the object will be held here.
@ -74,8 +74,8 @@ abstract class Plugin extends PluginBase {
* @return array
* Returns the options of this handler/plugin.
*
* @see Drupal\views\Plugin\views\Plugin::export_option()
* @see Drupal\views\Plugin\views\Plugin::unpack_translatable()
* @see Drupal\views\Plugin\views\PluginBase::export_option()
* @see Drupal\views\Plugin\views\PluginBase::unpack_translatable()
*/
function option_definition() { return array(); }

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\access;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\PluginBase;
/**
* @defgroup views_access_plugins Views access plugins
@ -20,7 +20,7 @@ use Drupal\views\Plugin\views\Plugin;
/**
* The base plugin to handle access control.
*/
abstract class AccessPluginBase extends Plugin {
abstract class AccessPluginBase extends PluginBase {
/**
* Initialize the plugin.

View File

@ -7,8 +7,8 @@
namespace Drupal\views\Plugin\views\area;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\Handler;
use Drupal\views\Plugin\views\PluginBase;
use Drupal\views\Plugin\views\HandlerBase;
/**
* @defgroup views_area_handlers Views area handlers
@ -22,10 +22,10 @@ use Drupal\views\Plugin\views\Handler;
*
* @ingroup views_area_handlers
*/
abstract class AreaPluginBase extends Handler {
abstract class AreaPluginBase extends HandlerBase {
/**
* Overrides Handler::init().
* Overrides Drupal\views\Plugin\views\HandlerBase::init().
*
* Make sure that no result area handlers are set to be shown when the result
* is empty.

View File

@ -7,8 +7,8 @@
namespace Drupal\views\Plugin\views\argument;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\Handler;
use Drupal\views\Plugin\views\PluginBase;
use Drupal\views\Plugin\views\HandlerBase;
/**
* @defgroup views_argument_handlers Views argument handlers
@ -40,7 +40,7 @@ use Drupal\views\Plugin\views\Handler;
*
* @ingroup views_argument_handlers
*/
abstract class ArgumentPluginBase extends Handler {
abstract class ArgumentPluginBase extends HandlerBase {
var $validator = NULL;
var $argument = NULL;

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\argument_default;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\PluginBase;
/**
* @defgroup views_argument_default_plugins Views argument default plugins
@ -20,7 +20,7 @@ use Drupal\views\Plugin\views\Plugin;
/**
* The fixed argument default handler; also used as the base.
*/
abstract class ArgumentDefaultPluginBase extends Plugin {
abstract class ArgumentDefaultPluginBase extends PluginBase {
/**
* Return the default argument.

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\argument_validator;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\PluginBase;
/**
* @defgroup views_argument_validate_plugins Views argument validate plugins
@ -20,7 +20,7 @@ use Drupal\views\Plugin\views\Plugin;
/**
* Base argument validator plugin to provide basic functionality.
*/
abstract class ArgumentValidatorPluginBase extends Plugin {
abstract class ArgumentValidatorPluginBase extends PluginBase {
/**
* Initialize this plugin with the view and the argument

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\cache;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\PluginBase;
use Drupal\Core\Database\Query\Select;
/**
@ -21,7 +21,7 @@ use Drupal\Core\Database\Query\Select;
/**
* The base plugin to handle caching.
*/
abstract class CachePluginBase extends Plugin {
abstract class CachePluginBase extends PluginBase {
/**
* Contains all data that should be written/read from cache.

View File

@ -8,7 +8,7 @@
namespace Drupal\views\Plugin\views\display;
use Drupal\views\View;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\PluginBase;
use Drupal\views\Plugin\Type\ViewsPluginManager;
/**
@ -28,7 +28,7 @@ use Drupal\views\Plugin\Type\ViewsPluginManager;
* The default display plugin handler. Display plugins handle options and
* basic mechanisms for different output methods.
*/
abstract class DisplayPluginBase extends Plugin {
abstract class DisplayPluginBase extends PluginBase {
/**
* The top object of a view.

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\display_extender;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\PluginBase;
use Drupal\Core\Annotation\Translation;
/**
@ -15,7 +15,7 @@ use Drupal\Core\Annotation\Translation;
*
* @ingroup views_display_plugins
*/
abstract class DisplayExtenderPluginBase extends Plugin {
abstract class DisplayExtenderPluginBase extends PluginBase {
function init(&$view, &$display) {
$this->view = $view;

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\exposed_form;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\PluginBase;
/**
* @defgroup views_exposed_form_plugins Views exposed form plugins
@ -22,7 +22,7 @@ use Drupal\views\Plugin\views\Plugin;
/**
* The base plugin to handle exposed filter forms.
*/
abstract class ExposedFormPluginBase extends Plugin {
abstract class ExposedFormPluginBase extends PluginBase {
/**
* Initialize the plugin.

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\field;
use Drupal\views\Plugin\views\Handler;
use Drupal\views\Plugin\views\HandlerBase;
use Drupal\Core\Annotation\Plugin;
/**
@ -47,7 +47,7 @@ define('VIEWS_HANDLER_RENDER_TEXT_PHASE_EMPTY', 2);
*
* @ingroup views_field_handlers
*/
abstract class FieldPluginBase extends Handler {
abstract class FieldPluginBase extends HandlerBase {
var $field_alias = 'unknown';
var $aliases = array();

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\filter;
use Drupal\views\Plugin\views\Handler;
use Drupal\views\Plugin\views\HandlerBase;
use Drupal\Core\Annotation\Plugin;
/**
@ -36,7 +36,7 @@ use Drupal\Core\Annotation\Plugin;
*
* @ingroup views_filter_handlers
*/
abstract class FilterPluginBase extends Handler {
abstract class FilterPluginBase extends HandlerBase {
/**
* Contains the actual value of the field,either configured in the views ui

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\localization;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\PluginBase;
/**
* @defgroup views_localization_plugins Views localization plugins
@ -20,7 +20,7 @@ use Drupal\views\Plugin\views\Plugin;
/**
* The base plugin to handle localization of Views strings.
*/
abstract class LocalizationPluginBase extends Plugin {
abstract class LocalizationPluginBase extends PluginBase {
// Store for exported strings
var $export_strings = array();

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\pager;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\PluginBase;
/**
* @defgroup views_pager_plugins Views pager plugins
@ -20,7 +20,7 @@ use Drupal\views\Plugin\views\Plugin;
/**
* The base plugin to handle pager.
*/
abstract class PagerPluginBase extends Plugin {
abstract class PagerPluginBase extends PluginBase {
var $current_page = NULL;

View File

@ -6,12 +6,12 @@
namespace Drupal\views\Plugin\views\query;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\PluginBase;
/**
* @todo.
*/
abstract class QueryPluginBase extends Plugin implements QueryInterface {
abstract class QueryPluginBase extends PluginBase implements QueryInterface {
/**
* A pager plugin that should be provided by the display.

View File

@ -7,7 +7,6 @@
namespace Drupal\views\Plugin\views\relationship;
use Drupal\views\Plugin\views\Handler;
use Drupal\Core\Annotation\Plugin;
/**

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\relationship;
use Drupal\views\Plugin\views\Handler;
use Drupal\views\Plugin\views\HandlerBase;
use Drupal\views\Join;
use Drupal\Core\Annotation\Plugin;
@ -41,7 +41,7 @@ use Drupal\Core\Annotation\Plugin;
*
* @ingroup views_relationship_handlers
*/
abstract class RelationshipPluginBase extends Handler {
abstract class RelationshipPluginBase extends HandlerBase {
/**
* Init handler to let relationships live on tables other than

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\row;
use Drupal\views\Plugin\views\Plugin;
use Drupal\views\Plugin\views\PluginBase;
/**
* @defgroup views_row_plugins Views row plugins
@ -24,7 +24,7 @@ use Drupal\views\Plugin\views\Plugin;
* Default plugin to view a single row of a table. This is really just a wrapper around
* a theme function.
*/
abstract class RowPluginBase extends Plugin {
abstract class RowPluginBase extends PluginBase {
/**
* Initialize the row plugin.

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\sort;
use Drupal\views\Plugin\views\Handler;
use Drupal\views\Plugin\views\HandlerBase;
use Drupal\Core\Annotation\Plugin;
/**
@ -21,7 +21,7 @@ use Drupal\Core\Annotation\Plugin;
*
* @ingroup views_sort_handlers
*/
abstract class SortPluginBase extends Handler {
abstract class SortPluginBase extends HandlerBase {
/**
* Determine if a sort can be exposed.

View File

@ -7,7 +7,7 @@
namespace Drupal\views\Plugin\views\style;
use Drupal\views\Plugin\views\Plugin as ViewsPlugin;
use Drupal\views\Plugin\views\PluginBase;
use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
@ -28,7 +28,7 @@ use Drupal\Core\Annotation\Translation;
/**
* Base class to define a style plugin handler.
*/
abstract class StylePluginBase extends ViewsPlugin {
abstract class StylePluginBase extends PluginBase {
/**
* Store all available tokens row rows.