src/Service/AbstractOrganizedTemplateController.php
/**
     * Returns first template found with name
     *
     * @param string $name
     * @return TemplateInterface|null
     */
Returns first template found with name
@param string $name
@return TemplateInterface|null
Returns first template found with name @param string $name @return TemplateInterface|null
public function findTemplateWithName(string $name): ?TemplateInterface {
        foreach($this->yieldIDsWithName($name) as $t) {
            if($t = $this->getTemplate($t))
                return $t;
        }
        return NULL;
    }
public function findTemplateWithName ( string $ name ) : ? TemplateInterface { foreach ( $ this -> yieldIDsWithName ( $ name ) as $ t ) { if ( $ t = $ this -> getTemplate ( $ t ) ) return $ t ; } return NULL ; }
Returns first template found with name
 @param string $name
 @return TemplateInterface|null
Returns first template found with name @param string $name @return TemplateInterface|null