src/ngrest/NgRest.php
public static function createPluginObject($className, $name, $alias, $i18n, $args = [])
    {
        return Yii::createObject(array_merge([
            'class' => $className,
            'name' => $name,
            'alias' => $alias,
            'i18n' => $i18n,
        ], $args));
    }
public static function createPluginObject($className, $name, $alias, $i18n, $args = [])
    {
        return Yii::createObject(array_merge([
            'class' => $className,
            'name' => $name,
            'alias' => $alias,
            'i18n' => $i18n,
        ], $args));
    }
public static function createPluginObject ( $ className , $ name , $ alias , $ i18n , $ args = [ ] ) { return Yii :: createObject ( array_merge ( [ 'class' => $ className , 'name' => $ name , 'alias' => $ alias , 'i18n' => $ i18n , ] , $ args ) ) ; }
Generates an NgRest Plugin Object.

@param string $className
@param string $name
@param string $alias
@param boolean $i18n
@param array $args
@return \luya\admin\ngrest\base\Plugin
Generates an NgRest Plugin Object .