src/ngrest/ConfigBuilder.php
public function addPlugin($name, array $args)
    {
        $plugin = ['class' => $name, 'args' => $args];
        $this->config[$this->pointer][$this->field]['type'] = $plugin;
        
        return $this;
    }
public function addPlugin($name, array $args)
    {
        $plugin = ['class' => $name, 'args' => $args];
        $this->config[$this->pointer][$this->field]['type'] = $plugin;
        
        return $this;
    }
public function addPlugin ( $ name , array $ args ) { $ plugin = [ 'class' => $ name , 'args' => $ args ] ; $ this -> config [ $ this -> pointer ] [ $ this -> field ] [ 'type' ] = $ plugin ; return $ this ; }
Add a Plugin to the current field pointer plugins array.

@param string $name The name of the ngrest\plugin
@param array $args
@return \luya\admin\ngrest\ConfigBuilder
@since 1.0.0
Add a Plugin to the current field pointer plugins array .