$params['action'] ?? 'view', 'entity' => $params['entity'] ?? NULL, 'entity_table' => $params['table'] ?? NULL, 'id' => $params['id'], ]); if ($link) { return sprintf('%s', htmlspecialchars($link['url']), htmlspecialchars($params['title'] ?? $link['title']) ); } else { return sprintf('[%s, %s]', $params['table'], $params['id']); } }