Commit 506960b5 authored by dawehner's avatar dawehner Committed by tim.plunkett
Browse files

convert another bazzilons of instances

parent cb3b6ee9
......@@ -60,11 +60,11 @@ function node_views_data() {
),
// Information for accepting a nid as a filter
'filter' => array(
'handler' => 'views_handler_filter_numeric',
'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
),
// Information for sorting on a nid.
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
);
......@@ -82,14 +82,14 @@ function node_views_data() {
'link_to_node default' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
// Information for accepting a title as a filter
'filter' => array(
'handler' => 'views_handler_filter_string',
'handler' => 'Drupal\views\Plugins\views\filter\String',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
'handler' => 'Drupal\views\Plugins\views\argument\String',
),
);
......@@ -98,14 +98,14 @@ function node_views_data() {
'title' => t('Post date'), // The item it appears as on the UI,
'help' => t('The date the content was posted.'), // The help that appears on the UI,
'field' => array(
'handler' => 'views_handler_field_date',
'handler' => 'Drupal\views\Plugins\views\field\Date',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort_date',
'handler' => 'Drupal\views\Plugins\views\sort\Date',
),
'filter' => array(
'handler' => 'views_handler_filter_date',
'handler' => 'Drupal\views\Plugins\views\filter\Date',
),
);
......@@ -114,14 +114,14 @@ function node_views_data() {
'title' => t('Updated date'), // The item it appears as on the UI,
'help' => t('The date the content was last updated.'), // The help that appears on the UI,
'field' => array(
'handler' => 'views_handler_field_date',
'handler' => 'Drupal\views\Plugins\views\field\Date',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort_date',
'handler' => 'Drupal\views\Plugins\views\sort\Date',
),
'filter' => array(
'handler' => 'views_handler_filter_date',
'handler' => 'Drupal\views\Plugins\views\filter\Date',
),
);
......@@ -134,7 +134,7 @@ function node_views_data() {
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
'filter' => array(
'handler' => 'views_handler_filter_node_type',
......@@ -149,20 +149,20 @@ function node_views_data() {
'title' => t('Published'),
'help' => t('Whether or not the content is published.'),
'field' => array(
'handler' => 'views_handler_field_boolean',
'handler' => 'Drupal\views\Plugins\views\field\Boolean',
'click sortable' => TRUE,
'output formats' => array(
'published-notpublished' => array(t('Published'), t('Not published')),
),
),
'filter' => array(
'handler' => 'views_handler_filter_boolean_operator',
'handler' => 'Drupal\views\Plugins\views\filter\BooleanOperator',
'label' => t('Published'),
'type' => 'yes-no',
'use equal' => TRUE, // Use status = 1 instead of status <> 0 in WHERE statment
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
);
......@@ -204,19 +204,19 @@ function node_views_data() {
'help' => t('Whether or not the content is sticky.'), // The help that appears on the UI,
// Information for displaying a title as a field
'field' => array(
'handler' => 'views_handler_field_boolean',
'handler' => 'Drupal\views\Plugins\views\field\Boolean',
'click sortable' => TRUE,
'output formats' => array(
'sticky' => array(t('Sticky'), t('Not sticky')),
),
),
'filter' => array(
'handler' => 'views_handler_filter_boolean_operator',
'handler' => 'Drupal\views\Plugins\views\filter\BooleanOperator',
'label' => t('Sticky'),
'type' => 'yes-no',
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
'help' => t('Whether or not the content is sticky. To list sticky content first, set this to descending.'),
),
);
......@@ -380,7 +380,7 @@ function node_views_data() {
'relationship' => array(
'title' => t('Author'),
'help' => t('Relate content to the user who created it.'),
'handler' => 'views_handler_relationship',
'handler' => 'Drupal\views\Plugins\views\relationship\RelationshipPluginBase',
'base' => 'users',
'field' => 'uid',
'label' => t('author'),
......@@ -389,7 +389,7 @@ function node_views_data() {
'handler' => 'views_handler_filter_user_name',
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
'handler' => 'Drupal\views\Plugins\views\argument\Numeric',
),
'field' => array(
'handler' => 'views_handler_field_user',
......@@ -450,7 +450,7 @@ function node_views_data() {
'title' => t('User'),
'help' => t('Relate a content revision to the user who created the revision.'),
'relationship' => array(
'handler' => 'views_handler_relationship',
'handler' => 'Drupal\views\Plugins\views\relationship\RelationshipPluginBase',
'base' => 'users',
'base field' => 'uid',
'label' => t('revision user'),
......@@ -473,14 +473,14 @@ function node_views_data() {
),
// Information for accepting a nid as a filter
'filter' => array(
'handler' => 'views_handler_filter_numeric',
'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
),
// Information for sorting on a nid.
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
'relationship' => array(
'handler' => 'views_handler_relationship',
'handler' => 'Drupal\views\Plugins\views\relationship\RelationshipPluginBase',
'base' => 'node',
'base field' => 'vid',
'title' => t('Content'),
......@@ -499,13 +499,13 @@ function node_views_data() {
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
'handler' => 'Drupal\views\Plugins\views\filter\String',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
'handler' => 'Drupal\views\Plugins\views\argument\String',
),
);
......@@ -515,10 +515,10 @@ function node_views_data() {
'help' => t('The log message entered when the revision was created.'), // The help that appears on the UI,
// Information for displaying a title as a field
'field' => array(
'handler' => 'views_handler_field_xss',
'handler' => 'Drupal\views\Plugins\views\field\Xss',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
'handler' => 'Drupal\views\Plugins\views\filter\String',
),
);
......@@ -528,14 +528,14 @@ function node_views_data() {
'title' => t('Updated date'), // The item it appears as on the UI,
'help' => t('The date the node was last updated.'), // The help that appears on the UI,
'field' => array(
'handler' => 'views_handler_field_date',
'handler' => 'Drupal\views\Plugins\views\field\Date',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort_date',
'handler' => 'Drupal\views\Plugins\views\sort\Date',
),
'filter' => array(
'handler' => 'views_handler_filter_date',
'handler' => 'Drupal\views\Plugins\views\filter\Date',
),
);
......
......@@ -44,10 +44,10 @@ function system_views_data() {
'numeric' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
);
......@@ -60,13 +60,13 @@ function system_views_data() {
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
'handler' => 'Drupal\views\Plugins\views\filter\String',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
'handler' => 'Drupal\views\Plugins\views\argument\String',
),
);
......@@ -79,13 +79,13 @@ function system_views_data() {
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
'handler' => 'Drupal\views\Plugins\views\filter\String',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
'handler' => 'Drupal\views\Plugins\views\argument\String',
),
);
......@@ -98,13 +98,13 @@ function system_views_data() {
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
'handler' => 'Drupal\views\Plugins\views\filter\String',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
'handler' => 'Drupal\views\Plugins\views\argument\String',
),
);
......@@ -128,10 +128,10 @@ function system_views_data() {
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
),
);
......@@ -144,7 +144,7 @@ function system_views_data() {
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
'filter' => array(
'handler' => 'views_handler_filter_file_status',
......@@ -156,14 +156,14 @@ function system_views_data() {
'title' => t('Upload date'),
'help' => t('The date the file was uploaded.'),
'field' => array(
'handler' => 'views_handler_field_date',
'handler' => 'Drupal\views\Plugins\views\field\Date',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort_date',
'handler' => 'Drupal\views\Plugins\views\sort\Date',
),
'filter' => array(
'handler' => 'views_handler_filter_date',
'handler' => 'Drupal\views\Plugins\views\filter\Date',
),
);
......@@ -391,65 +391,65 @@ function system_views_data() {
'title' => t('Module'),
'help' => t('The module managing this file relationship.'),
'field' => array(
'handler' => 'views_handler_field',
'handler' => 'Drupal\views\Plugins\views\field\FieldPluginBase',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_string',
'handler' => 'Drupal\views\Plugins\views\filter\String',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
'handler' => 'Drupal\views\Plugins\views\argument\String',
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
);
$data['file_usage']['type'] = array(
'title' => t('Entity type'),
'help' => t('The type of entity that is related to the file.'),
'field' => array(
'handler' => 'views_handler_field',
'handler' => 'Drupal\views\Plugins\views\field\FieldPluginBase',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_string',
'handler' => 'Drupal\views\Plugins\views\filter\String',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
'handler' => 'Drupal\views\Plugins\views\argument\String',
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
);
$data['file_usage']['id'] = array(
'title' => t('Entity ID'),
'help' => t('The ID of the entity that is related to the file.'),
'field' => array(
'handler' => 'views_handler_field_numeric',
'handler' => 'Drupal\views\Plugins\views\field\Numeric',
'click sortable' => TRUE,
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
'handler' => 'Drupal\views\Plugins\views\argument\Numeric',
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
);
$data['file_usage']['count'] = array(
'title' => t('Use count'),
'help' => t('The number of times the file is used by this entity.'),
'field' => array(
'handler' => 'views_handler_field_numeric',
'handler' => 'Drupal\views\Plugins\views\field\Numeric',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
);
......@@ -470,18 +470,18 @@ function system_views_data() {
'title' => t('Module/Theme/Theme engine filename'),
'help' => t('The path of the primary file for this item, relative to the Drupal root; e.g. modules/node/node.module.'),
'field' => array(
'handler' => 'views_handler_field',
'handler' => 'Drupal\views\Plugins\views\field\FieldPluginBase',
'click sortable' => TRUE,
),
'argument' => array(
'handler' => 'views_handler_argument_string',
'handler' => 'Drupal\views\Plugins\views\argument\String',
'name field' => 'filename', // the field to display in the summary.
),
'filter' => array(
'handler' => 'views_handler_filter_string',
'handler' => 'Drupal\views\Plugins\views\filter\String',
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
);
// - name
......@@ -489,18 +489,18 @@ function system_views_data() {
'title' => t('Module/Theme/Theme engine name'),
'help' => t('The name of the item; e.g. node.'),
'field' => array(
'handler' => 'views_handler_field',
'handler' => 'Drupal\views\Plugins\views\field\FieldPluginBase',
'click sortable' => TRUE,
),
'argument' => array(
'handler' => 'views_handler_argument_string',
'handler' => 'Drupal\views\Plugins\views\argument\String',
'name field' => 'name', // the field to display in the summary.
),
'filter' => array(
'handler' => 'views_handler_filter_string',
'handler' => 'Drupal\views\Plugins\views\filter\String',
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
);
// - type
......@@ -508,18 +508,18 @@ function system_views_data() {
'title' => t('Type'),
'help' => t('The type of the item, either module, theme, or theme_engine.'),
'field' => array(
'handler' => 'views_handler_field',
'handler' => 'Drupal\views\Plugins\views\field\FieldPluginBase',
'click sortable' => TRUE,
),
'argument' => array(
'handler' => 'views_handler_argument_string',
'handler' => 'Drupal\views\Plugins\views\argument\String',
'name field' => 'type', // the field to display in the summary.
),
'filter' => array(
'handler' => 'views_handler_filter_system_type',
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
);
// - status
......@@ -527,18 +527,18 @@ function system_views_data() {
'title' => t('Status'),
'help' => t('Boolean indicating whether or not this item is enabled.'),
'field' => array(
'handler' => 'views_handler_field_boolean',
'handler' => 'Drupal\views\Plugins\views\field\Boolean',
'click sortable' => TRUE,
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
'handler' => 'Drupal\views\Plugins\views\argument\Numeric',
'name field' => 'status', // the field to display in the summary.
),
'filter' => array(
'handler' => 'views_handler_filter_boolean_operator',
'handler' => 'Drupal\views\Plugins\views\filter\BooleanOperator',
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
);
// - schema version
......@@ -546,18 +546,18 @@ function system_views_data() {
'title' => t('Schema version'),
'help' => t("The module's database schema version number. -1 if the module is not installed (its tables do not exist); 0 or the largest N of the module's hook_update_N() function that has either been run or existed when the module was first installed."),
'field' => array(
'handler' => 'views_handler_field_numeric',
'handler' => 'Drupal\views\Plugins\views\field\Numeric',
'click sortable' => TRUE,
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
'handler' => 'Drupal\views\Plugins\views\argument\Numeric',
'name field' => 'schema_version', // the field to display in the summary.
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
);
......
......@@ -40,11 +40,11 @@ function taxonomy_views_data() {
'title' => t('Name'), // The item it appears as on the UI,
'field' => array(
'help' => t('Name of the vocabulary a term is a member of. This will be the vocabulary that whichever term the "Taxonomy: Term" field is; and can similarly cause duplicates.'),
'handler' => 'views_handler_field',
'handler' => 'Drupal\views\Plugins\views\field\FieldPluginBase',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
'help' => t('The taxonomy vocabulary name'),
),
);
......@@ -52,7 +52,7 @@ function taxonomy_views_data() {
'title' => t('Machine name'), // The item it appears as on the UI,
'field' => array(
'help' => t('Machine-Name of the vocabulary a term is a member of. This will be the vocabulary that whichever term the "Taxonomy: Term" field is; and can similarly cause duplicates.'),
'handler' => 'views_handler_field',
'handler' => 'Drupal\views\Plugins\views\field\FieldPluginBase',
'click sortable' => TRUE,
),
'filter' => array(
......@@ -68,7 +68,7 @@ function taxonomy_views_data() {
'title' => t('Vocabulary ID'), // The item it appears as on the UI,
'help' => t('The taxonomy vocabulary ID'),
'field' => array(
'handler' => 'views_handler_field_numeric',
'handler' => 'Drupal\views\Plugins\views\field\Numeric',
'click sortable' => TRUE,
),
'argument' => array(
......@@ -76,32 +76,32 @@ function taxonomy_views_data() {
'name field' => 'name',
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
);
$data['taxonomy_vocabulary']['description'] = array(
'title' => t('Description'), // The item it appears as on the UI,
'help' => t('The taxonomy vocabulary description'),
'field' => array(
'handler' => 'views_handler_field',
'handler' => 'Drupal\views\Plugins\views\field\FieldPluginBase',
),
);
$data['taxonomy_vocabulary']['weight'] = array(
'title' => t('Weight'),
'help' => t('The taxonomy vocabulary weight'),
'field' => array(
'handler' => 'views_handler_field_numeric',
'handler' => 'Drupal\views\Plugins\views\field\Numeric',
'click sortable' => TRUE,
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
'handler' => 'Drupal\views\Plugins\views\argument\Numeric',
'name field' => 'weight',
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
),
);
......@@ -146,11 +146,11 @@ function taxonomy_views_data() {
'title' => t('Term ID'),
'help' => t('The tid of a taxonomy term.'),
'field' => array(
'handler' => 'views_handler_field_numeric',
'handler' => 'Drupal\views\Plugins\views\field\Numeric',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
'argument' => array(
'handler' => 'views_handler_argument_taxonomy',
......@@ -172,7 +172,7 @@ function taxonomy_views_data() {
'help' => t('The tid of a taxonomy term.'),
'real field' => 'tid',
'filter' => array(
'handler' => 'views_handler_filter_numeric',
'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
'allow empty' => TRUE,
),
);
......@@ -182,7 +182,7 @@ function taxonomy_views_data() {
'title' => t('Representative node'),
'label' => t('Representative node'),
'help' => t('Obtains a single representative node for each term, according to a chosen sort criterion.'),
'handler' => 'views_handler_relationship_groupwise_max',
'handler' => 'Drupal\views\Plugins\views\relationship\GroupwiseMax',
'relationship field' => 'tid',
'outer field' => 'taxonomy_term_data.tid',
'argument table' => 'taxonomy_term_data',
......@@ -201,14 +201,14 @@ function taxonomy_views_data() {
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
'handler' => 'Drupal\views\Plugins\views\filter\String',
'help' => t('Taxonomy term name.'),
),
'argument' => array(
'handler' => 'views_handler_argument_string',
'handler' => 'Drupal\views\Plugins\views\argument\String',
'help' => t('Taxonomy term name.'),
'many to one' => TRUE,
'empty field name' => t('Uncategorized'),
......@@ -220,17 +220,17 @@ function taxonomy_views_data() {
'title' => t('Weight'),
'help' => t('The term weight field'),
'field' => array(
'handler' => 'views_handler_field_numeric',
'handler' => 'Drupal\views\Plugins\views\field\Numeric',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
),
'filter' => array(