Skip to content
Snippets Groups Projects
Unverified Commit e2a92ae2 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3488179 follow-up by alexpott: RecipeConfigurator::getIncludedRecipe()...

Issue #3488179 follow-up by alexpott: RecipeConfigurator::getIncludedRecipe() should statically cache recipe objects to avoid performance problems
parent 00a3f6e4
No related branches found
No related tags found
No related merge requests found
Pipeline #344405 passed
......@@ -133,15 +133,15 @@ public function describeAll(): array {
* constraints.
*/
public function collectAll(InputCollectorInterface $collector, array &$processed = []): void {
if (is_array($this->values)) {
throw new \LogicException('Input values cannot be changed once they have been set.');
}
// Don't bother collecting values for a recipe we've already seen.
if (in_array($this->prefix, $processed, TRUE)) {
return;
}
if (is_array($this->values)) {
throw new \LogicException('Input values cannot be changed once they have been set.');
}
// First, collect values for the recipe's dependencies.
/** @var \Drupal\Core\Recipe\Recipe $dependency */
foreach ($this->dependencies->recipes as $dependency) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment