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

Breadcrumb

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

function SystemDceSecurityProvider::getGid

@inheritDoc

Throws

DceSecurityException if unable to get a group identifier

Overrides DceSecurityProviderInterface::getGid

File

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

Class

SystemDceSecurityProvider
SystemDceSecurityProvider retrieves the user or group identifiers from the system

Namespace

Ramsey\Uuid\Provider\Dce

Code

public function getGid() : IntegerObject {
    
    /** @var int|float|string|IntegerObject|null $gid */
    static $gid = null;
    if ($gid instanceof IntegerObject) {
        return $gid;
    }
    if ($gid === null) {
        $gid = $this->getSystemGid();
    }
    if ($gid === '') {
        throw new DceSecurityException('Unable to get a group identifier using the system DCE ' . 'Security provider; please provide a custom identifier or ' . 'use a different provider');
    }
    $gid = new IntegerObject($gid);
    return $gid;
}

API Navigation

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