lib/Elastica/IndexTemplate.php
public function request($method, $data = [])
    {
        $path = '_template/'.$this->getName();

        return $this->getClient()->request($path, $method, $data);
    }
public function request($method, $data = [])
    {
        $path = '_template/'.$this->getName();

        return $this->getClient()->request($path, $method, $data);
    }
public function request ( $ method , $ data = [ ] ) { $ path = '_template/' . $ this -> getName ( ) ; return $ this -> getClient ( ) -> request ( $ path , $ method , $ data ) ; }
Makes calls to the elasticsearch server based on this index template name.

@param string $method Rest method to use (GET, POST, DELETE, PUT)
@param array  $data   OPTIONAL Arguments as array

@return \Elastica\Response Response object
Makes calls to the elasticsearch server based on this index template name .