The names are sorted such that if a module m1 depends on a module m2,
then m2 comes before m1 in the sorted set.
If module names are passed, only those module names are sorted. Otherwise
all module names are sorted.
public getSortedModuleNames ( array $namesToSort = [] ) : string[] | ||
$namesToSort | array | The module names which should be sorted. |
return | string[] | The sorted module names. |