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

Breadcrumb

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

function CompletionInput::__toString

Overrides ArgvInput::__toString

File

vendor/symfony/console/Completion/CompletionInput.php, line 229

Class

CompletionInput
An input specialized for shell completion.

Namespace

Symfony\Component\Console\Completion

Code

public function __toString() : string {
    $str = '';
    foreach ($this->tokens as $i => $token) {
        $str .= $token;
        if ($this->currentIndex === $i) {
            $str .= '|';
        }
        $str .= ' ';
    }
    if ($this->currentIndex > $i) {
        $str .= '|';
    }
    return rtrim($str);
}

API Navigation

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