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

Breadcrumb

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

function ConfigurationResolver::getBoolean

Overrides ConfigurationResolverInterface::getBoolean

File

vendor/open-telemetry/api/Instrumentation/ConfigurationResolver.php, line 19

Class

ConfigurationResolver

Namespace

OpenTelemetry\API\Instrumentation

Code

public function getBoolean(string $name) : ?bool {
    $value = $this->getVariable($name);
    if ($value === null) {
        return null;
    }
    return $value === 'true';
}
RSS feed
Powered by Drupal