getTemplate() public static method

Find a particular template file and return its path
public static getTemplate ( string $strTemplate, string $strFormat = 'html5' ) : string
$strTemplate string The name of the template
$strFormat string The file extension
return string The path to the template file
 /**
  * Get article for this node.
  *
  * @param $pid
  *
  * @return string
  *
  * @SuppressWarnings(PHPMD.UnusedLocalVariable)
  */
 protected function getArticleNode($pid)
 {
     $listData = new SQLListData($this->getData()->getWidget(), Database::getInstance(), $this->getListDataConfig($pid));
     list($articleLevel, $start) = $listData->browseFrom();
     $level = new \ArrayIterator();
     /** @var SQLListNode $current */
     while ($current = $articleLevel->current()) {
         $node = $current->getData();
         $node['_key'] = 'tl_article::' . $node['_key'];
         $listNode = new SQLListNode($listData, $node);
         $level->append($listNode);
         $articleLevel->next();
     }
     ob_start();
     include Controller::getTemplate('avisota_selectri_with_items');
     return ob_get_clean();
 }