function [mapName, relativePathToMapFile, found] = getBlockHelpMapNameAndPath(blockType)
%  Return the help map entry for the input block type along with the path
%  to the map file.

%  This function is called when a user clicks on the Help button on a core
%  block. The core block type is an input to this function.

% Copyright 2019 The MathWorks, Inc.

blks = {...
    'SignalInvalidation'             'signalinvalidation'            ;
    'AUTOSARComponentBlock'          'autosar_component_block'       ;
    'AUTOSARCompositionBlock'        'autosar_composition_block'     ;
};
blockTypeToMapNameMap = containers.Map(blks(:,1), blks(:,2));

% Specify the MAP file
relativePathToMapFile = '/autosar/helptargets.map';

% Find the MAP file entry
found = blockTypeToMapNameMap.isKey(blockType);
if ~found
    mapName = 'User Defined';
else
    mapName = blockTypeToMapNameMap(blockType);
end

% LocalWords:  signalinvalidation helptargets
