/**
* Returns the list of non-hidden enabled addon names
*
+ * @deprecated 2025.02 Use `Friendica\Core\Addon\AddonHelper::getVisibleList()` instead
+ *
* @return array
* @throws \Exception
*/
public function isEnabled(string $addonId): bool;
/**
- * Returns a list of the enabled addon names
+ * Returns a list with the IDs of the enabled addons
*
- * @return array
+ * @return string[]
*/
public function getEnabledList(): array;
+
+ /**
+ * Returns the list of the IDs of the non-hidden enabled addons
+ *
+ * @return string[]
+ */
+ public static function getVisibleList(): array;
}
}
/**
- * Returns a list of the enabled addon names
+ * Returns a list with the IDs of the enabled addons
*
* @return string[]
*/
{
return Addon::getEnabledList();
}
+
+ /**
+ * Returns the list of the IDs of the non-hidden enabled addons
+ *
+ * @return string[]
+ */
+ public static function getVisibleList(): array
+ {
+ return Addon::getVisibleList();
+ }
}