public function getAllTemplates($key, $default = null)
    {
        $templates = $this->repository->getAll($key);

        return null === $templates ? $default : EmailTemplate::buildMultiply($templates);
    }
public function getAllTemplates($key, $default = null)
    {
        $templates = $this->repository->getAll($key);

        return null === $templates ? $default : EmailTemplate::buildMultiply($templates);
    }
public function getAllTemplates ( $ key , $ default = null ) { $ templates = $ this -> repository -> getAll ( $ key ) ; return null === $ templates ? $ default : EmailTemplate :: buildMultiply ( $ templates ) ; }
Returns email template on all languages.

@param string    $key
@param mixed     $default Default value.

@return null|EmailTemplate[]
Returns email template on all languages .