Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / views / tests / modules / views_test_data / views_test_data.install
1 <?php
2
3 /**
4  * @file
5  * Install, update, and uninstall functions for the Views Test module.
6  */
7
8 /**
9  * Implements hook_schema().
10  */
11 function views_test_data_schema() {
12   return \Drupal::state()->get('views_test_data_schema');
13 }
14
15 /**
16  * Implements hook_install().
17  */
18 function views_test_data_install() {
19   // Add the marquee tag to possible html elements to test the field handler.
20   $values = [
21     'div' => 'DIV',
22     'span' => 'SPAN',
23     'h1' => 'H1',
24     'h2' => 'H2',
25     'h3' => 'H3',
26     'h4' => 'H4',
27     'h5' => 'H5',
28     'h6' => 'H6',
29     'p' => 'P',
30     'strong' => 'STRONG',
31     'em' => 'EM',
32     'marquee' => 'MARQUEE'
33   ];
34   \Drupal::configFactory()->getEditable('views.settings')->set('field_rewrite_elements', $values)->save();
35 }