ContactViewsHooks.php

Namespace

Drupal\contact\Hook

File

core/modules/contact/src/Hook/ContactViewsHooks.php

View source
<?php

namespace Drupal\contact\Hook;

use Drupal\Core\Hook\Attribute\Hook;

/**
 * Hook implementations for contact.
 */
class ContactViewsHooks {
    
    /**
     * @file
     * Provide views data for contact.module.
     */
    
    /**
     * Implements hook_views_data_alter().
     */
    public function viewsDataAlter(&$data) {
        $data['users']['contact'] = [
            'field' => [
                'title' => t('Contact link'),
                'help' => t('Provide a simple link to the user contact page.'),
                'id' => 'contact_link',
            ],
        ];
    }

}

Classes

Title Deprecated Summary
ContactViewsHooks Hook implementations for contact.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.