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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>
getTargetIds(String targetId, String fallbackTargetId)
Resolves the target IDs to use to build the candidate targeted URLs.
-
-
-
Method Detail
-
getTargetIds
List<String> getTargetIds(String targetId, String fallbackTargetId)
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
-
-