src/behaviors/LogBehavior.php
public function eventAfterDelete($event)
    {
        if ($this->isLoggable()) {
            Yii::$app->db->createCommand()->insert('{{%admin_ngrest_log}}', [
                'user_id' => $this->getUserId(),
                'timestamp_create' => time(),
                'route' => $this->route,
                'api' => $this->api,
                'is_insert' => false,
                'is_update' => false,
                'is_delete' => true,
                'attributes_json' => $this->toJson($event->sender->getAttributes()),
                'table_name' => $event->sender->tableName(),
                'pk_value' => implode("-", $event->sender->getPrimaryKey(true)),
            ])->execute();
        }
    }
public function eventAfterDelete($event)
    {
        if ($this->isLoggable()) {
            Yii::$app->db->createCommand()->insert('{{%admin_ngrest_log}}', [
                'user_id' => $this->getUserId(),
                'timestamp_create' => time(),
                'route' => $this->route,
                'api' => $this->api,
                'is_insert' => false,
                'is_update' => false,
                'is_delete' => true,
                'attributes_json' => $this->toJson($event->sender->getAttributes()),
                'table_name' => $event->sender->tableName(),
                'pk_value' => implode("-", $event->sender->getPrimaryKey(true)),
            ])->execute();
        }
    }
public function eventAfterDelete ( $ event ) { if ( $ this -> isLoggable ( ) ) { Yii :: $ app -> db -> createCommand ( ) -> insert ( '{{%admin_ngrest_log}}' , [ 'user_id' => $ this -> getUserId ( ) , 'timestamp_create' => time ( ) , 'route' => $ this -> route , 'api' => $ this -> api , 'is_insert' => false , 'is_update' => false , 'is_delete' => true , 'attributes_json' => $ this -> toJson ( $ event -> sender -> getAttributes ( ) ) , 'table_name' => $ event -> sender -> tableName ( ) , 'pk_value' => implode ( "-" , $ event -> sender -> getPrimaryKey ( true ) ) , ] ) -> execute ( ) ; } }
After delete event.

@param \yii\base\Event $event
After delete event .