function ContactViewsHooks::viewsDataAlter

Implements hook_views_data_alter().

File

core/modules/contact/src/Hook/ContactViewsHooks.php, line 19

Class

ContactViewsHooks
Hook implementations for contact.

Namespace

Drupal\contact\Hook

Code

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',
        ],
    ];
}

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