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

Breadcrumb

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

function SystemDceSecurityProvider::getOs

Returns the PHP_OS string

2 calls to SystemDceSecurityProvider::getOs()
SystemDceSecurityProvider::getSystemGid in vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php
Returns the GID from the system
SystemDceSecurityProvider::getSystemUid in vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php
Returns the UID from the system

File

vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php, line 142

Class

SystemDceSecurityProvider
SystemDceSecurityProvider retrieves the user or group identifiers from the system

Namespace

Ramsey\Uuid\Provider\Dce

Code

private function getOs() : string {
    
    /**
     * @psalm-suppress UnnecessaryVarAnnotation
     * @var string $phpOs
     */
    $phpOs = constant('PHP_OS');
    return strtoupper(substr($phpOs, 0, 3));
}

API Navigation

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