@ConsumerType public interface ExperienceFragment extends Component, com.adobe.cq.export.json.ContainerExporter
ExperienceFragment
Sling Model used for the
/apps/core/wcm/components/experiencefragment
component.Modifier and Type | Field and Description |
---|---|
static String |
PN_FRAGMENT_VARIATION_PATH
Name of the configuration policy property that specifies the experience fragment variation path.
|
Modifier and Type | Method and Description |
---|---|
default String |
getCssClassNames()
Generates some container class names (needed for SPA framework)
|
default @NotNull Map<String,? extends com.adobe.cq.export.json.ComponentExporter> |
getExportedItems() |
default @NotNull String[] |
getExportedItemsOrder() |
default @NotNull String |
getExportedType() |
default String |
getLocalizedFragmentVariationPath()
Returns the localized path of the experience fragment variation if the experience fragment resource is defined
in the template.
|
default String |
getName()
Returns the technical name of the experience fragment.
|
default boolean |
isConfigured()
Simple boolean flag to check if the experience fragment variation and its underlying experience fragment is configured.
|
getAppliedCssClasses, getData, getId
static final String PN_FRAGMENT_VARIATION_PATH
String
value.default String getLocalizedFragmentVariationPath()
null
otherwise.
If both the content page and the experience fragment have a localized root (language, live copy or blueprint),
- it is then assumed that the content pages and the experience fragments follow the same structure patterns -
this method returns the localized path of the experience fragment based on the localization of the content page
if it exists, otherwise it returns the fragment path that is configured, suffixed with "/jcr:content".default String getName()
@Nullable default String getCssClassNames()
default boolean isConfigured()
@NotNull default @NotNull String getExportedType()
getExportedType
in interface Component
getExportedType
in interface com.adobe.cq.export.json.ComponentExporter
ComponentExporter.getExportedType()
@NotNull default @NotNull String[] getExportedItemsOrder()
getExportedItemsOrder
in interface com.adobe.cq.export.json.ContainerExporter
ContainerExporter.getExportedItemsOrder()
@NotNull default @NotNull Map<String,? extends com.adobe.cq.export.json.ComponentExporter> getExportedItems()
getExportedItems
in interface com.adobe.cq.export.json.ContainerExporter
ContainerExporter.getExportedItems()
Copyright © 2022. All rights reserved.