CacheableContextTrait |
trait |
Drupal\core_context |
src/CacheableContextTrait.php |
Provides methods for working with contexts that can be cached. |
|
1 |
|
CanonicalEntity |
final class |
Drupal\core_context\ContextProvider |
src/ContextProvider/CanonicalEntity.php |
Exposes contexts available at a canonical entity route. |
|
|
2 |
ContextBlock |
class |
Drupal\core_context_test\Plugin\Block |
tests/modules/core_context_test/src/Plugin/Block/ContextBlock.php |
Plugin annotation
@Block(
id = "context_block",
admin_label = @Translation("Context block"),
context_definitions = {
"value" = @ContextDefinition("any"),
"letter" = @ContextDefinition("string"),
},
) |
1 |
|
|
ContextBlockOptional |
class |
Drupal\core_context_test\Plugin\Block |
tests/modules/core_context_test/src/Plugin/Block/ContextBlockOptional.php |
Plugin annotation
@Block(
id = "context_block_optional",
admin_label = @Translation("Optional context block"),
context_definitions = {
"value" = @ContextDefinition("any", required = FALSE),
"letter" = @ContextDefinition("string",… |
|
|
|
ContextBlockTest |
class |
Drupal\Tests\core_context\Functional |
tests/src/Functional/ContextBlockTest.php |
@group core_context |
|
|
|
ContextItem |
final class |
Drupal\core_context\Plugin\Field\FieldType |
src/Plugin/Field/FieldType/ContextItem.php |
Plugin implementation of the 'context' field type. |
|
|
|
ContextItemTest |
class |
Drupal\Tests\core_context\Kernel |
tests/src/Kernel/ContextItemTest.php |
@group core_context |
|
|
|
ContextProviderBase |
abstract class |
Drupal\core_context\ContextProvider |
src/ContextProvider/ContextProviderBase.php |
Provides a base class for context providers. |
1 |
|
|
CoreContextServiceProvider |
final class |
Drupal\core_context |
src/CoreContextServiceProvider.php |
Registers container services on behalf of Core Context. |
|
|
|
EntityContextHandlerInterface |
interface |
Drupal\core_context |
src/EntityContextHandlerInterface.php |
Defines an interface for entity handlers that expose contexts. |
2 |
|
|
FieldContextHandler |
final class |
Drupal\core_context |
src/FieldContextHandler.php |
Exposes contexts stored on an entity field. |
|
1 |
|
Generic |
final class |
Drupal\core_context\ContextProvider |
src/ContextProvider/Generic.php |
Exposes contexts from various provider services, under a single namespace. |
|
|
2 |
LayoutBuilder |
final class |
Drupal\core_context\ContextProvider |
src/ContextProvider/LayoutBuilder.php |
Exposes contexts available at Layout Builder routes. |
|
|
|
LayoutBuilderIntegrationTest |
class |
Drupal\Tests\core_context\Functional |
tests/src/Functional/LayoutBuilderIntegrationTest.php |
@group core_context |
|
|
|
LayoutBuilderMediaTest |
class |
Drupal\Tests\core_context\Functional |
tests/src/Functional/LayoutBuilderMediaTest.php |
Tests integration with the core Media and Layout Builder modules. |
|
|
|
PageManagerIntegrationTest |
class |
Drupal\Tests\core_context\Functional |
tests/src/Functional/PageManagerIntegrationTest.php |
@group core_context |
|
|
|
RouteAwareContextProviderBase |
abstract class |
Drupal\core_context\ContextProvider |
src/ContextProvider/RouteAwareContextProviderBase.php |
Provides a base class for context providers which use the current route. |
2 |
|
|
RouteSubscriber |
final class |
Drupal\core_context\Routing |
src/Routing/RouteSubscriber.php |
Modifies certain canonical entity routes to expose contexts. |
|
|
2 |
SectionComponentRenderArray |
final class |
Drupal\core_context\EventSubscriber |
src/EventSubscriber/SectionComponentRenderArray.php |
Reacts to a render array being generated for a layout section component. |
|
|
|
SettingsContextHandler |
final class |
Drupal\core_context |
src/SettingsContextHandler.php |
Exposes contexts stored in an entity's third-party settings. |
|
2 |
|
SettingsContextHandlerTest |
class |
Drupal\Tests\core_context\Kernel |
tests/src/Kernel/SettingsContextHandlerTest.php |
Tests handling of contexts stored in config entity third-party settings. |
|
|
|