ViewsUiTestFieldViewsHooks.php
Namespace
Drupal\views_ui_test_field\HookFile
-
core/
modules/ views_ui/ tests/ modules/ views_ui_test_field/ src/ Hook/ ViewsUiTestFieldViewsHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\views_ui_test_field\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for views_ui_test_field.
*/
class ViewsUiTestFieldViewsHooks {
/**
* Implements hook_views_data().
*/
public function viewsData() {
$data['views']['views_test_field_1'] = [
'title' => t('Views test field 1 - FIELD_1_TITLE'),
'help' => t('Field 1 for testing purposes - FIELD_1_DESCRIPTION'),
'field' => [
'id' => 'views_test_field_1',
],
];
$data['views']['views_test_field_2'] = [
'title' => t('Views test field 2 - FIELD_2_TITLE'),
'help' => t('Field 2 for testing purposes - FIELD_2_DESCRIPTION'),
'field' => [
'id' => 'views_test_field_2',
],
];
return $data;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ViewsUiTestFieldViewsHooks | Hook implementations for views_ui_test_field. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.