Interface CMSComponentContainerStrategy
- All Known Subinterfaces:
CMSComponentContainerStrategy
- All Known Implementing Classes:
AbstractCMSComponentContainerStrategy,DefaultCMSComponentContainerStrategy,DefaultCMSTabParagraphContainerStategy,DefaultCxCmsContainerStrategy,IdentityCMSComponentContainerStrategy,IdentityCMSComponentContainerStrategy,LegacyCMSComponentContainerStrategy,LegacyCMSComponentContainerStrategy
public interface CMSComponentContainerStrategy
Strategy to decide which components should represent the state a given container. The representation of a container
in this case should match with what will be actually rendered in the storefront.
In some cases, we want the container to represent itself, but in some other cases we want the inner components to represent the state of the container.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Class<? extends AbstractCMSComponentContainerModel>Deprecated, for removal: This API element is subject to removal in a future version.since 1811, no longer neededGet the list of components that should represent the state of the container.
-
Method Details
-
getDisplayComponentsForContainer
List<AbstractCMSComponentModel> getDisplayComponentsForContainer(AbstractCMSComponentContainerModel container) Get the list of components that should represent the state of the container.- Parameters:
container- The component container- Returns:
- the list of components that represents the container; never
null
-
getContainerClass
@Deprecated(since="1811", forRemoval=true) default Class<? extends AbstractCMSComponentContainerModel> getContainerClass()Deprecated, for removal: This API element is subject to removal in a future version.since 1811, no longer neededGet the component container class that this strategy applies to.- Returns:
- the matching container class
-