Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LintCommand.php

function LintCommand::complete

Overrides Command::complete

File

vendor/symfony/yaml/Command/LintCommand.php, line 265

Class

LintCommand
Validates YAML files syntax and outputs encountered errors.

Namespace

Symfony\Component\Yaml\Command

Code

public function complete(CompletionInput $input, CompletionSuggestions $suggestions) : void {
    if ($input->mustSuggestOptionValuesFor('format')) {
        $suggestions->suggestValues($this->getAvailableFormatOptions());
    }
}
RSS feed
Powered by Drupal