By johnwebdev on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.3.x
Introduced in version:
9.3.0
Issue links:
Description:
\Drupal\layout_builder\Context\LayoutBuilderContextTrait::getAvailableContexts() has been deprecated and will be removed in 10.0.0. Instead you should use \Drupal\layout_builder\Context\LayoutBuilderContextTrait::getPopulatedContexts().
The reason is that ::getAvailableContexts() is only intended to provide a list of available contexts, without the corresponding values of those contexts, as the value might need to be determined at runtime. This change will allow Layout Builder to correctly support contexts that are defined at runtime.
Impacts:
Module developers