You are here

private function EntityEventVariablesTest::createVariablesArray in Hook Event Dispatcher 8.2

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

Create the variables array.

Return value

array Variables array.

5 calls to EntityEventVariablesTest::createVariablesArray()
EntityEventVariablesTest::testCommentEvent in modules/preprocess_event_dispatcher/tests/src/Unit/EntityEventVariablesTest.php
Test a CommentPreprocessEvent.
EntityEventVariablesTest::testEckEntityEvent in modules/preprocess_event_dispatcher/tests/src/Unit/EntityEventVariablesTest.php
Test a EckEntityPreprocessEvent.
EntityEventVariablesTest::testNodeEvent in modules/preprocess_event_dispatcher/tests/src/Unit/EntityEventVariablesTest.php
Test a NodePreprocessEvent.
EntityEventVariablesTest::testParagraphEvent in modules/preprocess_event_dispatcher/tests/src/Unit/EntityEventVariablesTest.php
Test a ParagraphPreprocessEvent.
EntityEventVariablesTest::testTaxonomyTermEvent in modules/preprocess_event_dispatcher/tests/src/Unit/EntityEventVariablesTest.php
Test a TaxonomyTermPreprocessEvent.

File

modules/preprocess_event_dispatcher/tests/src/Unit/EntityEventVariablesTest.php, line 221

Class

EntityEventVariablesTest
Class EntityEventVariablesTest.

Namespace

Drupal\Tests\preprocess_event_dispatcher\Unit

Code

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