MediaLibraryViewsHooks.php
Namespace
Drupal\media_library\HookFile
-
core/
modules/ media_library/ src/ Hook/ MediaLibraryViewsHooks.php
View source
<?php
namespace Drupal\media_library\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for media_library.
*/
class MediaLibraryViewsHooks {
/**
* @file
* Contains Views integration for the media_library module.
*/
/**
* Implements hook_views_data().
*/
public function viewsData() {
$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;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
MediaLibraryViewsHooks | Hook implementations for media_library. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.