@ConsumerType public interface ExperienceFragment extends Component
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 @NotNull String |
getExportedType()
Returns the type of the resource for which the export is performed.
|
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.
|
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()
@NotNull default @NotNull String getExportedType()
ComponentExporter
Returns the type of the resource for which the export is performed.
NOTE: methods whose JSON serialization would lead to the same JSON property name (":type") will not be serialized.
getExportedType
in interface Component
getExportedType
in interface ComponentExporter
ComponentExporter.getExportedType()
Copyright © 2010 - 2020 Adobe. All Rights Reserved