Skip to content
Snippets Groups Projects
Commit cb3b6ee9 authored by Daniel Wehner's avatar Daniel Wehner Committed by Tim Plunkett
Browse files

Use the PSR0 handler classes in many modules

parent 45768154
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -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' => 'Drupal\views\Plugins\views\filter\String',
), ),
'argument' => array( 'argument' => array(
'handler' => 'views_handler_argument_string', 'handler' => 'Drupal\views\Plugins\views\argument\Numeric',
), ),
); );
$data['authmap']['module'] = array( $data['authmap']['module'] = array(
'title' => t('Authentication module'), 'title' => t('Authentication module'),
'help' => t('The name of the module managing the authentication entry.'), 'help' => t('The name of the module managing the authentication entry.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field', 'handler' => 'Drupal\views\Plugins\views\field\FieldNumeric',
), ),
'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\argment\String',
), ),
); );
......
...@@ -10,26 +10,26 @@ ...@@ -10,26 +10,26 @@
/** /**
* Implements hook_views_data(). * Implements hook_views_data().
*/ */
function views_views_data() { function views_views_data() {
$data['views']['table']['group'] = t('Global'); $data['views']['table']['group'] = t('Global');
$data['views']['table']['join'] = array( $data['views']['table']['join'] = array(
// #global is a special flag which let's a table appear all the time. // #global is a special flag which let's a table appear all the time.
'#global' => array(), '#global' => array(),
); );
$data['views']['random'] = array( $data['views']['random'] = array(
'title' => t('Random'), 'title' => t('Random'),
'help' => t('Randomize the display order.'), 'help' => t('Randomize the display order.'),
'sort' => array( 'sort' => array(
'handler' => 'views_handler_sort_random', 'handler' => 'Drupal\views\Plugins\views\sort\Random',
), ),
); );
$data['views']['null'] = array( $data['views']['null'] = array(
'title' => t('Null'), 'title' => t('Null'),
'help' => t('Allow a contextual filter value to be ignored. The query will not be altered by this contextual filter value. Can be used when contextual filter values come from the URL, and a part of the URL needs to be ignored.'), 'help' => t('Allow a contextual filter value to be ignored. The query will not be altered by this contextual filter value. Can be used when contextual filter values come from the URL, and a part of the URL needs to be ignored.'),
'argument' => array( 'argument' => array(
'handler' => 'views_handler_argument_null', 'handler' => 'Drupal\views\Plugins\views\argument\Null',
), ),
); );
...@@ -37,7 +37,7 @@ function views_views_data() { ...@@ -37,7 +37,7 @@ function views_views_data() {
'title' => t('Custom text'), 'title' => t('Custom text'),
'help' => t('Provide custom text or link.'), 'help' => t('Provide custom text or link.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_custom', 'handler' => 'Drupal\views\Plugins\views\field\Custom',
), ),
); );
...@@ -45,7 +45,7 @@ function views_views_data() { ...@@ -45,7 +45,7 @@ function views_views_data() {
'title' => t('View result counter'), 'title' => t('View result counter'),
'help' => t('Displays the actual position of the view result'), 'help' => t('Displays the actual position of the view result'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_counter', 'handler' => 'Drupal\views\Plugins\views\field\Counter',
), ),
); );
...@@ -53,7 +53,7 @@ function views_views_data() { ...@@ -53,7 +53,7 @@ function views_views_data() {
'title' => t('Text area'), 'title' => t('Text area'),
'help' => t('Provide markup text for the area.'), 'help' => t('Provide markup text for the area.'),
'area' => array( 'area' => array(
'handler' => 'views_handler_area_text', 'handler' => 'Drupal\views\Plugins\views\area\Text',
), ),
); );
...@@ -69,7 +69,7 @@ function views_views_data() { ...@@ -69,7 +69,7 @@ function views_views_data() {
'title' => t('View area'), 'title' => t('View area'),
'help' => t('Insert a view inside an area.'), 'help' => t('Insert a view inside an area.'),
'area' => array( 'area' => array(
'handler' => 'views_handler_area_view', 'handler' => 'Drupal\views\Plugins\views\area\View',
), ),
); );
...@@ -77,7 +77,7 @@ function views_views_data() { ...@@ -77,7 +77,7 @@ function views_views_data() {
'title' => t('Result summary'), 'title' => t('Result summary'),
'help' => t('Shows result summary, for example the items per page.'), 'help' => t('Shows result summary, for example the items per page.'),
'area' => array( 'area' => array(
'handler' => 'views_handler_area_result', 'handler' => 'Drupal\views\Plugins\views\area\Result',
), ),
); );
...@@ -86,7 +86,7 @@ function views_views_data() { ...@@ -86,7 +86,7 @@ function views_views_data() {
'title' => t('Contextual Links'), 'title' => t('Contextual Links'),
'help' => t('Display fields in a contextual links menu.'), 'help' => t('Display fields in a contextual links menu.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_contextual_links', 'handler' => 'Drupal\views\Plugins\views\field\ContextualLinks',
), ),
); );
} }
...@@ -95,7 +95,7 @@ function views_views_data() { ...@@ -95,7 +95,7 @@ function views_views_data() {
'title' => t('Combine fields filter'), 'title' => t('Combine fields filter'),
'help' => t('Combine two fields together and search by them.'), 'help' => t('Combine two fields together and search by them.'),
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_combine', 'handler' => 'Drupal\views\Plugins\views\filter\Combine',
), ),
); );
...@@ -104,7 +104,7 @@ function views_views_data() { ...@@ -104,7 +104,7 @@ function views_views_data() {
'title' => t('Math expression'), 'title' => t('Math expression'),
'help' => t('Evaluates a mathematical expression and displays it.'), 'help' => t('Evaluates a mathematical expression and displays it.'),
'field' => array( 'field' => array(
'handler' => 'views_handler_field_math', 'handler' => 'Drupal\views\Plugins\views\field\Math',
'float' => TRUE, 'float' => TRUE,
), ),
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment