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

Breadcrumb

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

function QuestionHelper::isInteractiveInput

1 call to QuestionHelper::isInteractiveInput()
QuestionHelper::getHiddenResponse in vendor/symfony/console/Helper/QuestionHelper.php
Gets a hidden response from user.

File

vendor/symfony/console/Helper/QuestionHelper.php, line 483

Class

QuestionHelper
The QuestionHelper class provides helpers to interact with the user.

Namespace

Symfony\Component\Console\Helper

Code

private function isInteractiveInput($inputStream) : bool {
    if ('php://stdin' !== (stream_get_meta_data($inputStream)['uri'] ?? null)) {
        return false;
    }
    if (isset(self::$stdinIsInteractive)) {
        return self::$stdinIsInteractive;
    }
    return self::$stdinIsInteractive = @stream_isatty(fopen('php://stdin', 'r'));
}

API Navigation

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