- π¦πΊAustralia acbramley
This is the same as
CacheableMetadata::applyTo
where you should merge metadata before using applyTo.Something like:
$x = new BubbleableMetadata(); // Add stuff to $x $y = BubbleableMetadata::createFromRenderArray($build); $x = $x->merge($y); // or use $x->addCacheableDependency($y); $x->applyTo($build);