/**
* @return string
*/
private function createForConstant(ConstantReflectionInterface $reflectionConstant, array $classes)
{
$url = $this->elementUrlFactory->createForConstant($reflectionConstant);
if ($reflectionConstant->getDeclaringClassName()) {
$text = $reflectionConstant->getDeclaringClassName() . '::' . Html::el('b')->setText($reflectionConstant->getName());
} else {
$text = $this->getGlobalConstantName($reflectionConstant);
}
return $this->linkBuilder->build($url, $text, FALSE, $classes);
}