src/ngrest/base/NgRestEventBehavior.php
public function bindPluginEvents(Event $event)
    {
        foreach ($this->plugins as $field => $plugin) {
            $plugin = self::findPluginInstance($field, $plugin, $event->sender->tableName());
            foreach ($plugin->events() as $on => $handler) {
                $event->sender->on($on, is_string($handler) ? [$plugin, $handler] : $handler);
            }
        }
    }
public function bindPluginEvents(Event $event)
    {
        foreach ($this->plugins as $field => $plugin) {
            $plugin = self::findPluginInstance($field, $plugin, $event->sender->tableName());
            foreach ($plugin->events() as $on => $handler) {
                $event->sender->on($on, is_string($handler) ? [$plugin, $handler] : $handler);
            }
        }
    }
public function bindPluginEvents ( Event $ event ) { foreach ( $ this -> plugins as $ field => $ plugin ) { $ plugin = self :: findPluginInstance ( $ field , $ plugin , $ event -> sender -> tableName ( ) ) ; foreach ( $ plugin -> events ( ) as $ on => $ handler ) { $ event -> sender -> on ( $ on , is_string ( $ handler ) ? [ $ plugin , $ handler ] : $ handler ) ; } } }
Bing all plugin Events to the corresponding Owner Object.

@param \yii\base\Event $event
Bing all plugin Events to the corresponding Owner Object .