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

Breadcrumb

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

function SystemDceSecurityProvider::getSystemGid

Returns the GID from the system

1 call to SystemDceSecurityProvider::getSystemGid()
SystemDceSecurityProvider::getGid in vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php
@inheritDoc

File

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

Class

SystemDceSecurityProvider
SystemDceSecurityProvider retrieves the user or group identifiers from the system

Namespace

Ramsey\Uuid\Provider\Dce

Code

private function getSystemGid() : string {
    if (!$this->hasShellExec()) {
        return '';
    }
    return match ($this->getOs()) {    'WIN' => $this->getWindowsGid(),
        default => trim((string) shell_exec('id -g')),
    
    };
}

API Navigation

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