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

Breadcrumb

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

function CompletionInput::getRelevantToken

The token of the cursor, or the last token if the cursor is at the end of the input.

1 call to CompletionInput::getRelevantToken()
CompletionInput::bind in vendor/symfony/console/Completion/CompletionInput.php
Binds the current Input instance with the given arguments and options.

File

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

Class

CompletionInput
An input specialized for shell completion.

Namespace

Symfony\Component\Console\Completion

Code

private function getRelevantToken() : string {
    return $this->tokens[$this->isCursorFree() ? $this->currentIndex - 1 : $this->currentIndex];
}

API Navigation

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