public function getSourceAdapter($name)
    {
        foreach (array_reverse($this->sourceAdapters) as $pattern => $adapter) {
            if (preg_match($pattern, $name)) {
                return $adapter;
            }
        }

        return null;
    }
public function getSourceAdapter($name)
    {
        foreach (array_reverse($this->sourceAdapters) as $pattern => $adapter) {
            if (preg_match($pattern, $name)) {
                return $adapter;
            }
        }

        return null;
    }
public function getSourceAdapter ( $ name ) { foreach ( array_reverse ( $ this -> sourceAdapters ) as $ pattern => $ adapter ) { if ( preg_match ( $ pattern , $ name ) ) { return $ adapter ; } } return null ; }
Decide if a template is twital-compilable or not.

@param string $name
@return SourceAdapter
Decide if a template is twital - compilable or not .