// alphabetically, since the other profiles might be intended to group
// together in a particular way.
$profiles =
['minimal' =>
$profiles['minimal'
]] +
$profiles;
} if (isset($profiles['standard'
])) { // If the default ("Standard") core profile is present, put it at the very
// top of the list. This profile will have its radio button pre-selected,
// so we want it to always appear at the top.
$profiles =
['standard' =>
$profiles['standard'
]] +
$profiles;
} reset($profiles);
return $io->
choice('Select an installation profile',
$profiles,
current($profiles));
} /**
* Validates a user provided install profile.
*
* @param string $install_profile
* Install profile to validate.
* @param \Symfony\Component\Console\Style\SymfonyStyle $io
* Symfony style output decorator.
*
* @return bool
* TRUE if the profile is valid, FALSE if not.
*/