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

Breadcrumb

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

function CompletionInput::isCursorFree

Whether the cursor is "free" (i.e. at the end of the input preceded by a space).

1 call to CompletionInput::isCursorFree()
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 219

Class

CompletionInput
An input specialized for shell completion.

Namespace

Symfony\Component\Console\Completion

Code

private function isCursorFree() : bool {
    $nrOfTokens = \count($this->tokens);
    if ($this->currentIndex > $nrOfTokens) {
        throw new \LogicException('Current index is invalid, it must be the number of input tokens or one more.');
    }
    return $this->currentIndex >= $nrOfTokens;
}

API Navigation

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