friendica/src/Core/Addon/AddonHelper.php
2025-02-02 06:55:38 +00:00

28 lines
523 B
PHP

<?php
// Copyright (C) 2010-2024, the Friendica project
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
//
// SPDX-License-Identifier: AGPL-3.0-or-later
declare(strict_types=1);
namespace Friendica\Core\Addon;
/**
* Some functions to handle addons
*/
interface AddonHelper
{
/**
* Checks if the provided addon is enabled
*/
public function isEnabled(string $addonId): bool;
/**
* Returns a list of the enabled addon names
*
* @return array
*/
public function getEnabledList(): array;
}