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

Breadcrumb

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

function SymfonyQuestionHelper::getEofShortcut

1 call to SymfonyQuestionHelper::getEofShortcut()
SymfonyQuestionHelper::writePrompt in vendor/symfony/console/Helper/SymfonyQuestionHelper.php
Outputs the question prompt.

File

vendor/symfony/console/Helper/SymfonyQuestionHelper.php, line 95

Class

SymfonyQuestionHelper
Symfony Style Guide compliant question helper.

Namespace

Symfony\Component\Console\Helper

Code

private function getEofShortcut() : string {
    if ('Windows' === \PHP_OS_FAMILY) {
        return '<comment>Ctrl+Z</comment> then <comment>Enter</comment>';
    }
    return '<comment>Ctrl+D</comment>';
}

API Navigation

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