protected function excludeSubComponents(array $parent, DrupalStyle $io) {
    $sub_components = $parent['components'];

    // Alphabetize for easier skimming.
    sort($sub_components);

    $question = sprintf(
      $this->trans('commands.lightning.subprofile.questions.exclude-components'),
      $parent['name'],
      count($sub_components),
      Element::oxford($sub_components)
    );

    if ($io->confirm($question, FALSE)) {
      $question = new ChoiceQuestion(
        $this->trans('commands.lightning.subprofile.questions.choose-excluded-components'),
        $sub_components
      );
      $question->setMultiselect(TRUE);

      return $io->askChoiceQuestion($question);
    }
    else {
      return [];
    }
  }
protected function excludeSubComponents(array $parent, DrupalStyle $io) {
    $sub_components = $parent['components'];

    // Alphabetize for easier skimming.
    sort($sub_components);

    $question = sprintf(
      $this->trans('commands.lightning.subprofile.questions.exclude-components'),
      $parent['name'],
      count($sub_components),
      Element::oxford($sub_components)
    );

    if ($io->confirm($question, FALSE)) {
      $question = new ChoiceQuestion(
        $this->trans('commands.lightning.subprofile.questions.choose-excluded-components'),
        $sub_components
      );
      $question->setMultiselect(TRUE);

      return $io->askChoiceQuestion($question);
    }
    else {
      return [];
    }
  }
protected function excludeSubComponents ( array $ parent , DrupalStyle $ io ) { $ sub_components = $ parent [ 'components' ] ; // Alphabetize for easier skimming. sort ( $ sub_components ) ; $ question = sprintf ( $ this -> trans ( 'commands.lightning.subprofile.questions.exclude-components' ) , $ parent [ 'name' ] , count ( $ sub_components ) , Element :: oxford ( $ sub_components ) ) ; if ( $ io -> confirm ( $ question , FALSE ) ) { $ question = new ChoiceQuestion ( $ this -> trans ( 'commands.lightning.subprofile.questions.choose-excluded-components' ) , $ sub_components ) ; $ question -> setMultiselect ( TRUE ) ; return $ io -> askChoiceQuestion ( $ question ) ; } else { return [ ] ; } }
Asks the user about excluding a set of Lightning sub-components.

@param array $parent
The parent component info.
@param \Drupal\Console\Core\Style\DrupalStyle $io
The I/O handler.

@return string[]
The sub-components to exclude.
Asks the user about excluding a set of Lightning sub - components .