Skip to content

Commit 8936189

Browse files
committed
Use empty string as a key for All option
1 parent e943883 commit 8936189

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Command/Entity/EntityBundleClass.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,9 @@ protected function generate(array &$vars): void {
6868
$bundle_info->getBundleInfo($vars['entity_type_id']),
6969
);
7070
// Prepend an 'All' choice for user's convenience.
71-
$bundle_choices_all = ['all' => 'All'] + $bundle_choices;
71+
$bundle_choices_all = ['' => 'All'] + $bundle_choices;
7272
$vars['bundle_ids'] = $this->choice('Bundles, comma separated', $bundle_choices_all, NULL, TRUE);
73-
74-
if (\in_array('all', $vars['bundle_ids'])) {
73+
if (\in_array('', $vars['bundle_ids'])) {
7574
if (\count($vars['bundle_ids']) >= 2) {
7675
throw new \UnexpectedValueException("'All' may not be combined with other choices.");
7776
}

0 commit comments

Comments
 (0)