diff --git a/eu_cookie_compliance_gtm.module b/eu_cookie_compliance_gtm.module index aa3d9b0..c0ecf4c 100644 --- a/eu_cookie_compliance_gtm.module +++ b/eu_cookie_compliance_gtm.module @@ -54,7 +54,7 @@ function eu_cookie_compliance_gtm_cookie_category_load(array $entities) { /**  * Handles the form alter for the category form.  */ -function eu_cookie_compliance_gtm_alter_category_form(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { +function eu_cookie_compliance_gtm_alter_category_form(&$form, FormStateInterface $form_state, $form_id) { $category = $form_state->getFormObject()->getEntity(); $form['gtm_data'] = array( '#type' => 'textarea', diff --git a/tests/src/Functional/LoadTest.php b/tests/src/Functional/LoadTest.php index 691bf0b..5c618b7 100644 --- a/tests/src/Functional/LoadTest.php +++ b/tests/src/Functional/LoadTest.php @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['eu_cookie_compliance_gtm']; + protected static $modules = ['eu_cookie_compliance_gtm']; /** * A user with permission to administer site configuration. @@ -29,7 +29,7 @@ class LoadTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->user = $this->drupalCreateUser(['administer site configuration']); $this->drupalLogin($this->user);