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

Breadcrumb

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

function MemcachedCaster::getOptionConstants

2 calls to MemcachedCaster::getOptionConstants()
MemcachedCaster::discoverDefaultOptions in vendor/symfony/var-dumper/Caster/MemcachedCaster.php
MemcachedCaster::getNonDefaultOptions in vendor/symfony/var-dumper/Caster/MemcachedCaster.php

File

vendor/symfony/var-dumper/Caster/MemcachedCaster.php, line 68

Class

MemcachedCaster
@author Jan Schädlich <jan.schaedlich@sensiolabs.de>

Namespace

Symfony\Component\VarDumper\Caster

Code

private static function getOptionConstants() : array {
    $reflectedMemcached = new \ReflectionClass(\Memcached::class);
    $optionConstants = [];
    foreach ($reflectedMemcached->getConstants() as $constantKey => $value) {
        if (str_starts_with($constantKey, 'OPT_')) {
            $optionConstants[$constantKey] = $value;
        }
    }
    return $optionConstants;
}

API Navigation

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