LayoutBuilderContextTrait
trait LayoutBuilderContextTrait (View source)
Provides a wrapper around getting contexts from a section storage object.
Properties
| protected ContextRepositoryInterface | $contextRepository | The context repository. |
Methods
contextRepository()
Gets the context repository service.
getAvailableContexts(SectionStorageInterface $section_storage)
deprecated
Provides all available contexts, both global and section_storage-specific.
array
getPopulatedContexts(SectionStorageInterface $section_storage)
Returns all populated contexts, both global and section-storage-specific.
Details
protected ContextRepositoryInterface
contextRepository()
Gets the context repository service.
protected ContextInterface[]
getAvailableContexts(SectionStorageInterface $section_storage)
deprecated
deprecated
Provides all available contexts, both global and section_storage-specific.
protected array
getPopulatedContexts(SectionStorageInterface $section_storage)
Returns all populated contexts, both global and section-storage-specific.