SectionStorageManagerInterface
interface SectionStorageManagerInterface implements DiscoveryInterface (View source)
Provides the interface for a plugin manager of section storage types.
Methods
Gets a specific plugin definition.
Indicates if a specific plugin definition exists.
Loads a section storage with the provided contexts applied.
Finds the section storage to load based on available contexts.
Loads a section storage with no associated section list.
Details
mixed
getDefinition(string $plugin_id, bool $exception_on_invalid = TRUE)
Gets a specific plugin definition.
array
getDefinitions()
Gets the definition of all plugins for this type.
bool
hasDefinition(string $plugin_id)
Indicates if a specific plugin definition exists.
SectionStorageInterface|null
load(string $type, array $contexts = [])
Loads a section storage with the provided contexts applied.
SectionStorageInterface|null
findByContext(array $contexts, RefinableCacheableDependencyInterface $cacheability)
Finds the section storage to load based on available contexts.
SectionStorageInterface
loadEmpty(string $type)
| internal | Section storage relies on context to load section lists. Use ::load() when that context is available. This method is intended for use by collaborators of the plugins in build-time situations when section storage type must be consulted. |
Loads a section storage with no associated section list.