rest_test_views.install
File
-
core/
modules/ rest/ tests/ modules/ rest_test_views/ rest_test_views.install
View source
<?php
/**
* @file
* Install function for the Rest Test Views module.
*/
declare (strict_types=1);
use Drupal\views\Tests\ViewTestData;
/**
* Implements hook_install().
*/
function rest_test_views_install() : void {
// Install the state and schema by for views test data.
\Drupal::state()->set('views_test_data_schema', ViewTestData::schemaDefinition());
\Drupal::state()->set('views_test_data_views_data', ViewTestData::viewsData());
drupal_flush_all_caches();
}
Functions
Title | Deprecated | Summary |
---|---|---|
rest_test_views_install | Implements hook_install(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.