Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContactViewsHooks.php

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) : void {
    $data['users']['contact'] = [
        'field' => [
            'title' => t('Contact link'),
            'help' => t('Provide a simple link to the user contact page.'),
            'id' => 'contact_link',
        ],
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal