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.
Loads a section storage populated with an existing section list.
Loads a section storage populated with a section list derived from a route.
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.
SectionStorageInterface
loadFromStorageId(string $type, string $id)
deprecated
deprecated
Loads a section storage populated with an existing section list.
SectionStorageInterface|null
loadFromRoute(string $type, string $value, mixed $definition, string $name, array $defaults)
deprecated
deprecated
Loads a section storage populated with a section list derived from a route.