yii\base\Event::offAll PHP Method

offAll() public static method

Detaches all registered class-level event handlers.
See also: on()
See also: off()
Since: 2.0.10
public static offAll ( )
    public static function offAll()
    {
        self::$_events = [];
    }