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

Breadcrumb

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

function Platform::isWindows

Return value

bool Whether the host machine is running a Windows OS

43 calls to Platform::isWindows()
Application::doRun in vendor/composer/composer/src/Composer/Console/Application.php
Runs the current application.
Application::hintCommonErrors in vendor/composer/composer/src/Composer/Console/Application.php
BaseCommand::getTerminalWidth in vendor/composer/composer/src/Composer/Command/BaseCommand.php
BinaryInstaller::installBinaries in vendor/composer/composer/src/Composer/Installer/BinaryInstaller.php
ConfigCommand::execute in vendor/composer/composer/src/Composer/Command/ConfigCommand.php

... See full list

File

vendor/composer/composer/src/Composer/Util/Platform.php, line 183

Class

Platform
Platform helper for uniform platform-specific tests.

Namespace

Composer\Util

Code

public static function isWindows() : bool {
    return \defined('PHP_WINDOWS_VERSION_BUILD');
}

API Navigation

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