/** * Returns the name of the Twig extension based on the classname. * * @return string */ public final function getName() { return strtolower(sprintf('s.twig_extension.%s', ClassInfo::getClassNameByInstance($this))); }