$response =
$this->httpKernel->
handle($redirect_request, HttpKernelInterface::SUB_REQUEST
);
if ($response instanceof CacheableResponseInterface
) { // @todo Once path aliases have cache tags (see
// https://www.drupal.org/node/2480077), add test coverage that
// the cache tag for a commented entity's path alias is added to the
// comment's permalink response, because there can be blocks or
// other content whose renderings depend on the subrequest's URL.
$response->
addCacheableDependency($subrequest_url);
} return $response;
} throw new NotFoundHttpException();
} /**
* The _title_callback for the page that renders the comment permalink.
*
* @param \Drupal\comment\CommentInterface $comment
* The current comment.
*
* @return string
* The translated comment subject.
*/