function media_library_views_data

Same name in other branches
  1. 9 core/modules/media_library/media_library.views.inc \media_library_views_data()
  2. 8.9.x core/modules/media_library/media_library.views.inc \media_library_views_data()
  3. 11.x core/modules/media_library/media_library.views.inc \media_library_views_data()

Implements hook_views_data().

File

core/modules/media_library/media_library.views.inc, line 11

Code

function media_library_views_data() {
    $data = [];
    $data['media']['media_library_select_form'] = [
        'title' => t('Select media'),
        'help' => t('Provides a field for selecting media entities in our media library view'),
        'real field' => 'mid',
        'field' => [
            'id' => 'media_library_select_form',
        ],
    ];
    return $data;
}

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