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