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

Breadcrumb

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

function Plugin::getCwd

See also

Platform::getCwd()

1 call to Plugin::getCwd()
Plugin::serviceProviders in vendor/tbachert/spi/src/Composer/Plugin.php

File

vendor/tbachert/spi/src/Composer/Plugin.php, line 255

Class

Plugin

Namespace

Nevay\SPI\Composer

Code

private static function getCwd() : string {
    $cwd = getcwd();
    if ($cwd === false) {
        $cwd = realpath('');
    }
    if ($cwd === false) {
        throw new RuntimeException('Could not determine the current working directory');
    }
    return $cwd;
}

API Navigation

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