logWarning(`Could not register added link with title '${title}'. Reason: Title is missing.`);
continue;
}
if(!description){
logWarning(`Could not register added link with title '${title}'. Reason: Description is missing.`);
continue;
}
if(!isConfigureFnValid(configure)){
logWarning(`Could not register added link with title '${title}'. Reason: configure is not a function.`);
continue;
}
if(!path&&!onClick){
logWarning(
`Could not register added link with title '${title}'. Reason: Either "path" or "onClick" is required.`
);
continue;
}
if(path&&!isLinkPathValid(pluginId,path)){
logWarning(
`Could not register added link with title '${title}'. Reason: The "path" is required and should start with "/a/${pluginId}/" (currently: "${path}"). Skipping the extension.`
`Added link "${config.title}: it's recommended to suffix the extension point id ("${extensionPointId}") with a version, e.g 'myorg-basic-app/extension-point/v1'.`