src/ngrest/base/NgRestEventBehavior.php
private static function findPluginInstance($field, array $plugin, $tableName)
    {
        if (!isset(self::$_pluginInstances[$tableName][$field])) {
            self::$_pluginInstances[$tableName][$field] = NgRest::createPluginObject($plugin['type']['class'], $plugin['name'], $plugin['alias'], $plugin['i18n'], $plugin['type']['args']);
        }
    
        return self::$_pluginInstances[$tableName][$field];
    }
private static function findPluginInstance($field, array $plugin, $tableName)
    {
        if (!isset(self::$_pluginInstances[$tableName][$field])) {
            self::$_pluginInstances[$tableName][$field] = NgRest::createPluginObject($plugin['type']['class'], $plugin['name'], $plugin['alias'], $plugin['i18n'], $plugin['type']['args']);
        }
    
        return self::$_pluginInstances[$tableName][$field];
    }
private static function findPluginInstance ( $ field , array $ plugin , $ tableName ) { if ( ! isset ( self :: $ _pluginInstances [ $ tableName ] [ $ field ] ) ) { self :: $ _pluginInstances [ $ tableName ] [ $ field ] = NgRest :: createPluginObject ( $ plugin [ 'type' ] [ 'class' ] , $ plugin [ 'name' ] , $ plugin [ 'alias' ] , $ plugin [ 'i18n' ] , $ plugin [ 'type' ] [ 'args' ] ) ; } return self :: $ _pluginInstances [ $ tableName ] [ $ field ] ; }
Singleton Container for Plugin Objects.

@param string $field
@param array $plugin
@param string $tableName
@return \luya\admin\ngrest\base\Plugin
Singleton Container for Plugin Objects .