You are here

private function EntityEventVariablesTest::createVariablesArray in Hook Event Dispatcher 8

Create the variables array.

Return value

array Variables array.

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

File

tests/src/Unit/Preprocess/EntityEventVariablesTest.php, line 211

Class

EntityEventVariablesTest
Class EntityEventVariablesTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Preprocess

Code

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