Interface JSImportMapsContributor


public interface JSImportMapsContributor
  • Method Summary

    Modifier and Type
    Method
    Description
    com.liferay.portal.kernel.json.JSONObject
    Contribute a chunk of the whole import maps JSON object.
    default String
    Get the scope for the contributed chunks of import maps.
  • Method Details

    • getImportMapsJSONObject

      com.liferay.portal.kernel.json.JSONObject getImportMapsJSONObject()
      Contribute a chunk of the whole import maps JSON object. The returned object must be a plain JSON object containing key value pairs, where keys are bare identifiers and values are JavaScript module URIs to which those bare identifiers must be resolved.
      Returns:
      a pure JSON object
      See Also:
    • getScope

      default String getScope()
      Get the scope for the contributed chunks of import maps.
      Returns:
      a valid URL or null to register a global mapping