You are here

private function OtherEventVariablesTest::createVariablesArray in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/preprocess_event_dispatcher/tests/src/Unit/OtherEventVariablesTest.php \Drupal\Tests\preprocess_event_dispatcher\Unit\OtherEventVariablesTest::createVariablesArray()

Create the variables array.

Return value

array Variables array.

12 calls to OtherEventVariablesTest::createVariablesArray()
OtherEventVariablesTest::testBlockEvent in modules/preprocess_event_dispatcher/tests/src/Unit/OtherEventVariablesTest.php
Test a BlockPreprocessEvent.
OtherEventVariablesTest::testBlockEventWithBlockContent in modules/preprocess_event_dispatcher/tests/src/Unit/OtherEventVariablesTest.php
Test a BlockPreprocessEvent with block content entity.
OtherEventVariablesTest::testFieldEvent in modules/preprocess_event_dispatcher/tests/src/Unit/OtherEventVariablesTest.php
Test a FieldPreprocessEvent.
OtherEventVariablesTest::testFormEvent in modules/preprocess_event_dispatcher/tests/src/Unit/OtherEventVariablesTest.php
Test FormPreprocessEvent.
OtherEventVariablesTest::testHtmlEvent in modules/preprocess_event_dispatcher/tests/src/Unit/OtherEventVariablesTest.php
Test a HtmlPreprocessEvent.

... See full list

File

modules/preprocess_event_dispatcher/tests/src/Unit/OtherEventVariablesTest.php, line 317

Class

OtherEventVariablesTest
Class OtherEventVariablesTest.

Namespace

Drupal\Tests\preprocess_event_dispatcher\Unit

Code

private function createVariablesArray() : array {
  return [
    'test' => 'success',
    'reference' => 'first',
  ];
}