mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Move getVisibleList() into AddonHelper
This commit is contained in:
parent
5504fdcd06
commit
c4469cb624
3 changed files with 22 additions and 3 deletions
|
@ -27,7 +27,7 @@ final class AddonProxy implements AddonHelper
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a list of the enabled addon names
|
||||
* Returns a list with the IDs of the enabled addons
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
|
@ -35,4 +35,14 @@ final class AddonProxy implements AddonHelper
|
|||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue