Pimcore\ExtensionManager::disable PHP Method

disable() public static method

public static disable ( $type, $id ) : void
$type
$id
return void
    public static function disable($type, $id)
    {
        $config = self::getConfig();
        if (!isset($config->{$type})) {
            $config->{$type} = new \Zend_Config([], true);
        }
        $config->{$type}->{$id} = false;
        self::setConfig($config);
        // call disable.php inside the extension
        $extensionDir = self::getPathForExtension($id, $type);
        $disableScript = $extensionDir . "/disable.php";
        if (is_file($disableScript)) {
            include $disableScript;
        }
    }