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

Breadcrumb

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

function Configurator::namePattern

1 call to Configurator::namePattern()
Configurator::with in vendor/open-telemetry/sdk/Common/InstrumentationScope/Configurator.php

File

vendor/open-telemetry/sdk/Common/InstrumentationScope/Configurator.php, line 98

Class

Configurator
@template T

Namespace

OpenTelemetry\SDK\Common\InstrumentationScope

Code

private static function namePattern(?string $name) : ?string {
    return $name !== null ? sprintf('/^%s$/', strtr(preg_quote($name, '/'), [
        '\\?' => '.',
        '\\*' => '.*',
    ])) : null;
}
RSS feed
Powered by Drupal