function IHaveRuntimeContexts::getRuntimeContexts

Same name in other branches
  1. 9 core/modules/layout_builder/tests/modules/layout_builder_test/src/ContextProvider/IHaveRuntimeContexts.php \Drupal\layout_builder_test\ContextProvider\IHaveRuntimeContexts::getRuntimeContexts()
  2. 11.x core/modules/layout_builder/tests/modules/layout_builder_test/src/ContextProvider/IHaveRuntimeContexts.php \Drupal\layout_builder_test\ContextProvider\IHaveRuntimeContexts::getRuntimeContexts()

Overrides ContextProviderInterface::getRuntimeContexts

File

core/modules/layout_builder/tests/modules/layout_builder_test/src/ContextProvider/IHaveRuntimeContexts.php, line 17

Class

IHaveRuntimeContexts
Defines a class for a fake context provider.

Namespace

Drupal\layout_builder_test\ContextProvider

Code

public function getRuntimeContexts(array $unqualified_context_ids) {
    return [
        'runtime_contexts' => new Context(new ContextDefinition('string', 'Do you have runtime contexts?'), 'for sure you can'),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.