Commit cb3b6ee9 authored by dawehner's avatar dawehner Committed by tim.plunkett

Use the PSR0 handler classes in many modules

parent 45768154
...@@ -89,7 +89,7 @@ function search_views_data() { ...@@ -89,7 +89,7 @@ function search_views_data() {
'handler' => 'views_handler_argument_node_nid', 'handler' => 'views_handler_argument_node_nid',
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_equality', 'handler' => 'Drupal\views\Plugins\views\filter\Equality',
), ),
); );
...@@ -107,7 +107,7 @@ function search_views_data() { ...@@ -107,7 +107,7 @@ function search_views_data() {
'handler' => 'views_handler_argument_node_nid', 'handler' => 'views_handler_argument_node_nid',
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_equality', 'handler' => 'Drupal\views\Plugins\views\filter\Equality',
), ),
); );
......
...@@ -32,14 +32,14 @@ function statistics_views_data() { ...@@ -32,14 +32,14 @@ function statistics_views_data() {
'help' => t('The total number of times the node has been viewed.'), 'help' => t('The total number of times the node has been viewed.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_numeric', 'handler' => 'Drupal\views\Plugins\views\field\Numeric',
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_numeric', 'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
); );
...@@ -49,14 +49,14 @@ function statistics_views_data() { ...@@ -49,14 +49,14 @@ function statistics_views_data() {
'help' => t('The total number of times the node has been viewed today.'), 'help' => t('The total number of times the node has been viewed today.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_numeric', 'handler' => 'Drupal\views\Plugins\views\field\Numeric',
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_numeric', 'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
); );
...@@ -66,14 +66,14 @@ function statistics_views_data() { ...@@ -66,14 +66,14 @@ function statistics_views_data() {
'help' => t('The most recent time the node has been viewed.'), 'help' => t('The most recent time the node has been viewed.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_date', 'handler' => 'Drupal\views\Plugins\views\field\Date',
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_date', 'handler' => 'Drupal\views\Plugins\views\filter\Date',
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
); );
...@@ -104,19 +104,19 @@ function statistics_views_data() { ...@@ -104,19 +104,19 @@ function statistics_views_data() {
'title' => t('Aid'), 'title' => t('Aid'),
'help' => t('Unique access event ID.'), 'help' => t('Unique access event ID.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_numeric', 'handler' => 'Drupal\views\Plugins\views\field\Numeric',
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'argument' => array( 'argument' => array(
'handler' => 'views_handler_argument_numeric', 'handler' => 'Drupal\views\Plugins\views\argument\Numeric',
'name field' => 'wid', 'name field' => 'wid',
'numeric' => TRUE, 'numeric' => TRUE,
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_numeric', 'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
); );
...@@ -130,13 +130,13 @@ function statistics_views_data() { ...@@ -130,13 +130,13 @@ function statistics_views_data() {
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_string', 'handler' => 'Drupal\views\Plugins\views\filter\String',
), ),
'argument' => array( 'argument' => array(
'handler' => 'views_handler_argument_string', 'handler' => 'Drupal\views\Plugins\views\argument\String',
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
); );
...@@ -150,13 +150,13 @@ function statistics_views_data() { ...@@ -150,13 +150,13 @@ function statistics_views_data() {
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_string', 'handler' => 'Drupal\views\Plugins\views\filter\String',
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
'argument' => array( 'argument' => array(
'handler' => 'views_handler_argument_string', 'handler' => 'Drupal\views\Plugins\views\sort\String',
), ),
); );
...@@ -170,10 +170,10 @@ function statistics_views_data() { ...@@ -170,10 +170,10 @@ function statistics_views_data() {
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_string', 'handler' => 'Drupal\views\Plugins\views\filter\String',
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
//No argument here. Can't send forward slashes as arguments. //No argument here. Can't send forward slashes as arguments.
//Can be worked around by node ID. //Can be worked around by node ID.
...@@ -185,14 +185,14 @@ function statistics_views_data() { ...@@ -185,14 +185,14 @@ function statistics_views_data() {
'title' => t('Referrer'), 'title' => t('Referrer'),
'help' => t('Referrer URI.'), 'help' => t('Referrer URI.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_url', 'handler' => 'Drupal\views\Plugins\views\field\Url',
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_string', 'handler' => 'Drupal\views\Plugins\views\filter\String',
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
); );
...@@ -201,17 +201,17 @@ function statistics_views_data() { ...@@ -201,17 +201,17 @@ function statistics_views_data() {
'title' => t('Hostname'), 'title' => t('Hostname'),
'help' => t('Hostname of user that visited the page.'), 'help' => t('Hostname of user that visited the page.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field', 'handler' => 'Drupal\views\Plugins\views\field\FieldPluginBase',
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_string', 'handler' => 'Drupal\views\Plugins\views\filter\String',
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
'argument' => array( 'argument' => array(
'handler' => 'views_handler_argument_string', 'handler' => 'Drupal\views\Plugins\views\argument\String',
), ),
); );
...@@ -220,7 +220,7 @@ function statistics_views_data() { ...@@ -220,7 +220,7 @@ function statistics_views_data() {
'title' => t('User'), 'title' => t('User'),
'help' => t('The user who visited the site.'), 'help' => t('The user who visited the site.'),
'relationship' => array( 'relationship' => array(
'handler' => 'views_handler_relationship', 'handler' => 'Drupal\views\Plugins\views\relationship\RelationshipPluginBase',
'base' => 'users', 'base' => 'users',
'base field' => 'uid', 'base field' => 'uid',
), ),
...@@ -231,14 +231,14 @@ function statistics_views_data() { ...@@ -231,14 +231,14 @@ function statistics_views_data() {
'title' => t('Timer'), 'title' => t('Timer'),
'help' => t('Time in milliseconds that the page took to load.'), 'help' => t('Time in milliseconds that the page took to load.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_numeric', 'handler' => 'Drupal\views\Plugins\views\field\Numeric',
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_numeric', 'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\Sort\SortPluginBase',
), ),
); );
...@@ -247,14 +247,14 @@ function statistics_views_data() { ...@@ -247,14 +247,14 @@ function statistics_views_data() {
'title' => t('Timestamp'), 'title' => t('Timestamp'),
'help' => t('Timestamp of when the page was visited.'), 'help' => t('Timestamp of when the page was visited.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_date', 'handler' => 'Drupal\views\Plugins\views\field\Date',
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_date', 'handler' => 'Drupal\views\Plugins\views\filter\Date',
), ),
); );
......
...@@ -30,7 +30,7 @@ function translation_views_data_alter(&$data) { ...@@ -30,7 +30,7 @@ function translation_views_data_alter(&$data) {
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_numeric', 'handler' => 'Drupal\views\Plugins\views\field\Numeric',
), ),
'argument' => array( 'argument' => array(
'handler' => 'views_handler_argument_node_tnid', 'handler' => 'views_handler_argument_node_tnid',
...@@ -39,14 +39,14 @@ function translation_views_data_alter(&$data) { ...@@ -39,14 +39,14 @@ function translation_views_data_alter(&$data) {
'validate type' => 'tnid', 'validate type' => 'tnid',
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
'relationship' => array( 'relationship' => array(
'title' => t('Source translation'), 'title' => t('Source translation'),
'help' => t('The source that this content was translated from.'), 'help' => t('The source that this content was translated from.'),
'base' => 'node', 'base' => 'node',
'base field' => 'nid', 'base field' => 'nid',
'handler' => 'views_handler_relationship', 'handler' => 'Drupal\views\Plugins\views\relationship\RelationshipPluginBase',
'label' => t('Source translation'), 'label' => t('Source translation'),
), ),
); );
...@@ -94,11 +94,11 @@ function translation_views_data_alter(&$data) { ...@@ -94,11 +94,11 @@ function translation_views_data_alter(&$data) {
'title' => t('Translation status'), 'title' => t('Translation status'),
'help' => t('The translation status of the content - whether or not the translation needs to be updated.'), 'help' => t('The translation status of the content - whether or not the translation needs to be updated.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_boolean', 'handler' => 'Drupal\views\Plugins\views\field\Boolean',
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_boolean_operator', 'handler' => 'Drupal\views\Plugins\views\filter\BooleanOperator',
'label' => t('Outdated'), 'label' => t('Outdated'),
'type' => 'yes-no', 'type' => 'yes-no',
), ),
......
...@@ -59,12 +59,12 @@ function user_views_data() { ...@@ -59,12 +59,12 @@ function user_views_data() {
'handler' => 'views_handler_filter_user_name', 'handler' => 'views_handler_filter_user_name',
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
'relationship' => array( 'relationship' => array(
'title' => t('Content authored'), 'title' => t('Content authored'),
'help' => t('Relate content to the user who created it. This relationship will create one record for each content item created by the user.'), 'help' => t('Relate content to the user who created it. This relationship will create one record for each content item created by the user.'),
'handler' => 'views_handler_relationship', 'handler' => 'Drupal\views\Plugins\views\relationship\RelationshipPluginBase',
'base' => 'node', 'base' => 'node',
'base field' => 'uid', 'base field' => 'uid',
'field' => 'uid', 'field' => 'uid',
...@@ -78,7 +78,7 @@ function user_views_data() { ...@@ -78,7 +78,7 @@ function user_views_data() {
'real field' => 'uid', 'real field' => 'uid',
'filter' => array( 'filter' => array(
'title' => t('The user ID'), 'title' => t('The user ID'),
'handler' => 'views_handler_filter_numeric', 'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
), ),
); );
...@@ -88,7 +88,7 @@ function user_views_data() { ...@@ -88,7 +88,7 @@ function user_views_data() {
'title' => t('Representative node'), 'title' => t('Representative node'),
'label' => t('Representative node'), 'label' => t('Representative node'),
'help' => t('Obtains a single representative node for each user, according to a chosen sort criterion.'), 'help' => t('Obtains a single representative node for each user, according to a chosen sort criterion.'),
'handler' => 'views_handler_relationship_groupwise_max', 'handler' => 'Drupal\views\Plugins\views\relationship\GroupwiseMax',
'relationship field' => 'uid', 'relationship field' => 'uid',
'outer field' => 'users.uid', 'outer field' => 'users.uid',
'argument table' => 'users', 'argument table' => 'users',
...@@ -118,13 +118,13 @@ function user_views_data() { ...@@ -118,13 +118,13 @@ function user_views_data() {
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
'argument' => array( 'argument' => array(
'handler' => 'views_handler_argument_string', 'handler' => 'Drupal\views\Plugins\views\argument\String',
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_string', 'handler' => 'Drupal\views\Plugins\views\filter\String',
'title' => t('Name (raw)'), 'title' => t('Name (raw)'),
'help' => t('The user or author name. This filter does not check if the user exists and allows partial matching. Does not utilize autocomplete.') 'help' => t('The user or author name. This filter does not check if the user exists and allows partial matching. Does not utilize autocomplete.')
), ),
...@@ -140,13 +140,13 @@ function user_views_data() { ...@@ -140,13 +140,13 @@ function user_views_data() {
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_string', 'handler' => 'Drupal\views\Plugins\views\filter\String',
), ),
'argument' => array( 'argument' => array(
'handler' => 'views_handler_argument_string', 'handler' => 'Drupal\views\Plugins\views\argument\String',
), ),
); );
...@@ -159,7 +159,7 @@ function user_views_data() { ...@@ -159,7 +159,7 @@ function user_views_data() {
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_node_language', 'handler' => 'views_handler_filter_node_language',
...@@ -180,10 +180,10 @@ function user_views_data() { ...@@ -180,10 +180,10 @@ function user_views_data() {
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_boolean_operator', 'handler' => 'Drupal\views\Plugins\views\filter\BooleanOperator',
'label' => t('Has Avatar'), 'label' => t('Has Avatar'),
'type' => 'yes-no', 'type' => 'yes-no',
), ),
...@@ -203,14 +203,14 @@ function user_views_data() { ...@@ -203,14 +203,14 @@ function user_views_data() {
'title' => t('Created date'), // The item it appears as on the UI, 'title' => t('Created date'), // The item it appears as on the UI,
'help' => t('The date the user was created.'), // The help that appears on the UI, 'help' => t('The date the user was created.'), // The help that appears on the UI,
'field' => array( 'field' => array(
'handler' => 'views_handler_field_date', 'handler' => 'Drupal\views\Plugins\views\field\Date',
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort_date', 'handler' => 'Drupal\views\Plugins\views\sort\Date',
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_date', 'handler' => 'Drupal\views\Plugins\views\filter\Date',
), ),
); );
...@@ -274,14 +274,14 @@ function user_views_data() { ...@@ -274,14 +274,14 @@ function user_views_data() {
'title' => t('Last access'), // The item it appears as on the UI, 'title' => t('Last access'), // The item it appears as on the UI,
'help' => t("The user's last access date."), // The help that appears on the UI, 'help' => t("The user's last access date."), // The help that appears on the UI,
'field' => array( 'field' => array(
'handler' => 'views_handler_field_date', 'handler' => 'Drupal\views\Plugins\views\field\Date',
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort_date', 'handler' => 'Drupal\views\Plugins\views\sort\Date',
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_date', 'handler' => 'Drupal\views\Plugins\views\filter\Date',
), ),
); );
...@@ -290,14 +290,14 @@ function user_views_data() { ...@@ -290,14 +290,14 @@ function user_views_data() {
'title' => t('Last login'), // The item it appears as on the UI, 'title' => t('Last login'), // The item it appears as on the UI,
'help' => t("The user's last login date."), // The help that appears on the UI, 'help' => t("The user's last login date."), // The help that appears on the UI,
'field' => array( 'field' => array(
'handler' => 'views_handler_field_date', 'handler' => 'Drupal\views\Plugins\views\field\Date',
'click sortable' => TRUE, 'click sortable' => TRUE,
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort_date', 'handler' => 'Drupal\views\Plugins\views\sort\Date',
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_date', 'handler' => 'Drupal\views\Plugins\views\filter\Date',
), ),
); );
...@@ -307,19 +307,19 @@ function user_views_data() { ...@@ -307,19 +307,19 @@ function user_views_data() {
'help' => t('Whether a user is active or blocked.'), // The help that appears on the UI, 'help' => t('Whether a user is active or blocked.'), // The help that appears on the UI,
// Information for displaying a title as a field // Information for displaying a title as a field
'field' => array( 'field' => array(
'handler' => 'views_handler_field_boolean', 'handler' => 'Drupal\views\Plugins\views\field\Boolean',
'click sortable' => TRUE, 'click sortable' => TRUE,
'output formats' => array( 'output formats' => array(
'active-blocked' => array(t('Active'), t('Blocked')), 'active-blocked' => array(t('Active'), t('Blocked')),
), ),
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_boolean_operator', 'handler' => 'Drupal\views\Plugins\views\filter\BooleanOperator',
'label' => t('Active'), 'label' => t('Active'),
'type' => 'yes-no', 'type' => 'yes-no',
), ),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort', 'handler' => 'Drupal\views\Plugins\views\sort\SortPluginBase',
), ),
); );
...@@ -329,11 +329,11 @@ function user_views_data() { ...@@ -329,11 +329,11 @@ function user_views_data() {
'help' => t("The user's signature."), // The help that appears on the UI, 'help' => t("The user's signature."), // The help that appears on the UI,
// Information for displaying a title as a field // Information for displaying a title as a field
'field' => array( 'field' => array(
'handler' => 'views_handler_field_markup', 'handler' => 'Drupal\views\Plugins\views\field\Markup',
'format' => filter_fallback_format(), 'format' => filter_fallback_format(),
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_string', 'handler' => 'Drupal\views\Plugins\views\filter\String',
), ),
); );
...@@ -357,7 +357,7 @@ function user_views_data() { ...@@ -357,7 +357,7 @@ function user_views_data() {
'title' => t('Data'), 'title' => t('Data'),
'help' => t('Provide serialized data of the user'), 'help' => t('Provide serialized data of the user'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_serialized', 'handler' => 'Drupal\views\Plugins\views\field\Serialized',
), ),
); );
...@@ -485,14 +485,14 @@ function user_views_data() { ...@@ -485,14 +485,14 @@ function user_views_data() {
'title' => t('Authmap ID'), 'title' => t('Authmap ID'),
'help' => t('The Authmap ID.'), 'help' => t('The Authmap ID.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_numeric', 'handler' => 'Drupal\views\Plugins\views\field\Numeric',
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_numeric', 'handler' => 'Drupal\views\Plugins\views\filter\Numeric',
'numeric' => TRUE, 'numeric' => TRUE,
), ),
'argument' => array( 'argument' => array(
'handler' => 'views_handler_argument_numeric', 'handler' => 'Drupal\views\Plugins\views\argument\Numeric',
'numeric' => TRUE, 'numeric' => TRUE,
), ),
); );
...@@ -500,26 +500,26 @@ function user_views_data() { ...@@ -500,26 +500,26 @@ function user_views_data() {
'title' => t('Authentication name'), 'title' => t('Authentication name'),
'help' => t('The unique authentication name.'), 'help' => t('The unique authentication name.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field', 'handler' => 'Drupal\views\Plugins\views\field\FieldPluginBase',
), ),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_string', 'handler'