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