function ContactViewsHooks::viewsDataAlter

Implements hook_views_data_alter().

Attributes

#[Hook('views_data_alter')]

File

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

Class

ContactViewsHooks
Hook implementations for contact.

Namespace

Drupal\contact\Hook

Code

public function viewsDataAlter(&$data) : void {
  $data['users']['contact'] = [
    'field' => [
      'title' => $this->t('Contact link'),
      'help' => $this->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.