protected function normalizeName(string $name): string
    {
        if ($this->files->getExtension($name) === $this->extension) {
            $name = \mb_substr($name, 0, -(\mb_strlen($this->extension) + 1));
        }

        return $name;
    }
protected function normalizeName(string $name): string
    {
        if ($this->files->getExtension($name) === $this->extension) {
            $name = \mb_substr($name, 0, -(\mb_strlen($this->extension) + 1));
        }

        return $name;
    }
protected function normalizeName ( string $ name ) : string { if ( $ this -> files -> getExtension ( $ name ) === $ this -> extension ) { $ name = \ mb_substr ( $ name , 0 , - ( \ mb_strlen ( $ this -> extension ) + 1 ) ) ; } return $ name ; }
Normalize the Twig template name to a name the ViewFinder can use.

@param string $name

@return string
Normalize the Twig template name to a name the ViewFinder can use .