protected function component_name(string $component): string {

        if ($component === 'core' || strpos($component, 'core_')) {
            return get_string('componentcore', 'tool_analytics');

        } else {
            return get_string('pluginname', $component);
        }
    }
protected function component_name(string $component): string {

        if ($component === 'core' || strpos($component, 'core_')) {
            return get_string('componentcore', 'tool_analytics');

        } else {
            return get_string('pluginname', $component);
        }
    }
protected function component_name ( string $ component ) : string { if ( $ component === 'core' || strpos ( $ component , 'core_' ) ) { return get_string ( 'componentcore' , 'tool_analytics' ) ; } else { return get_string ( 'pluginname' , $ component ) ; } }
Return a human readable name for the given frankenstyle component.

@param string $component Frankenstyle component such as 'core', 'core_analytics' or 'mod_workshop'
@return string Human readable name of the component
Return a human readable name for the given frankenstyle component .