public function getNamesForDomain($domain)
    {
        if (!isset($this->templates[$domain])) {
            throw new \InvalidArgumentException(sprintf(
                'Unknown template domain "%s"',
                $domain
            ));
        }

        return array_keys($this->templates[$domain]);
    }
public function getNamesForDomain($domain)
    {
        if (!isset($this->templates[$domain])) {
            throw new \InvalidArgumentException(sprintf(
                'Unknown template domain "%s"',
                $domain
            ));
        }

        return array_keys($this->templates[$domain]);
    }
public function getNamesForDomain ( $ domain ) { if ( ! isset ( $ this -> templates [ $ domain ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Unknown template domain "%s"' , $ domain ) ) ; } return array_keys ( $ this -> templates [ $ domain ] ) ; }
Returns the names of registered templates in the given domain.

@param string $domain Return template names for this domain

@throws \InvalidArgumentException

@return array Array of template name strings
Returns the names of registered templates in the given domain .