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

Breadcrumb

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

function CompletionSuggestions::suggestValue

Add a suggested value for an input option or argument.

Return value

$this

1 call to CompletionSuggestions::suggestValue()
CompletionSuggestions::suggestValues in vendor/symfony/console/Completion/CompletionSuggestions.php
Add multiple suggested values at once for an input option or argument.

File

vendor/symfony/console/Completion/CompletionSuggestions.php, line 31

Class

CompletionSuggestions
Stores all completion suggestions for the current input.

Namespace

Symfony\Component\Console\Completion

Code

public function suggestValue(string|Suggestion $value) : static {
    $this->valueSuggestions[] = !$value instanceof Suggestion ? new Suggestion($value) : $value;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal