Generates a link to a path, truncating the displayed text to a given width.
string $path: The path to generate the link for.
int $width: The width to set the displayed text of the path.
string A string as a link, truncated to the width, linked to the given $path.
function _statistics_link($path, $width = 35) {
$title = drupal_container()
->get('path.alias_manager')
->getPathAlias($path);
$title = truncate_utf8($title, $width, FALSE, TRUE);
return l($title, $path);
}