- Issue created by @larowlan
- First commit to issue fork.
\Drupal\Core\Plugin\Context\ContextHandler::checkRequirements
calls getMatchingRequirements
which evaluates each context. But in ::checkRequirements we only need to know if one context matches.
Add a ::hasRequirements method, that uses foreach and returns early instead of using array_filter.
Active
11.0 π₯
Last updated
It affects performance. It is often combined with the Needs profiling tag.
Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.