Drupal 10: A List Of Core Contexts

Language Context

@language.current_language_context:language_content
@language.current_language_context:language_interface
@language.current_language_context:language_url

Provided by Drupal\Core\Language\ContextProvider\CurrentLanguageContext.

Defined in core/core.services.yml.

User Context

@user.current_user_context:current_user

Provided by Drupal\user\ContextProvider\CurrentUserContext.

Defined in core/modules/user/user.services.yml.

Taxonomy Context

@taxonomy_term.taxonomy_term_route_context:taxonomy_term

Provided by Drupal\taxonomy\ContextProvider\TermRouteContext.

Defined in core/modules/taxonomy/taxonomy.services.yml.

Node Context

@node.node_route_context:node

Provided by Drupal\node\ContextProvider\NodeRouteContext.
Defined in core/modules/node/node.services.yml.

Comments

This is really useful, thank you!

Permalink

Add new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
4 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.