You are here

languagefield.views.inc in Custom Language field 8

Same filename and directory in other branches
  1. 7 languagefield.views.inc

Provide Views data for workflow.module.

File

languagefield.views.inc
View source
<?php

/**
 * @file
 * Provide Views data for workflow.module.
 *
 * @ingroup views_module_handlers
 */
use Drupal\field\FieldStorageConfigInterface;

/**
 * Implements hook_field_views_data().
 */
function languagefield_field_views_data(FieldStorageConfigInterface $field_storage) {
  $data = views_field_default_views_data($field_storage);
  foreach ($data as $table_name => $table_data) {
    $data[$table_name][$field_storage
      ->getName() . '_value']['filter']['id'] = 'languagefield';
  }
  return $data;
}

Functions