Package org.craftercms.engine.targeting
Interface CandidateTargetIdsResolver
- All Known Implementing Classes:
CandidateTargetIdsResolverImpl
public interface CandidateTargetIdsResolver
Resolves the target IDs to use to build the candidate targeted URLs.
- Author:
- avasquez
-
Method Summary
Modifier and TypeMethodDescriptiongetTargetIds
(String targetId, String fallbackTargetId) Resolves the target IDs to use to build the candidate targeted URLs.
-
Method Details
-
getTargetIds
Resolves the target IDs to use to build the candidate targeted URLs. For example, if the specified target ID is es_CR, and the fallback target ID is en, then the candidate target IDs are: es_CR, es and en. An empty string will be added if the fallback target ID is empty or null.- Parameters:
targetId
- the target ID from where to resolve the candidate target IDsfallbackTargetId
- the last candidate target ID to use- Returns:
- the list of candidate target IDs
-