private function OtherEventVariablesTest::createVariablesArray in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 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.
File
- modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ OtherEventVariablesTest.php, line 317
Class
- OtherEventVariablesTest
- Class OtherEventVariablesTest.
Namespace
Drupal\Tests\preprocess_event_dispatcher\UnitCode
private function createVariablesArray() : array {
return [
'test' => 'success',
'reference' => 'first',
];
}