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

Breadcrumb

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

function MapParser::validateKeyValuePair

1 call to MapParser::validateKeyValuePair()
MapParser::parse in vendor/open-telemetry/sdk/Common/Configuration/Parser/MapParser.php

File

vendor/open-telemetry/sdk/Common/Configuration/Parser/MapParser.php, line 36

Class

MapParser

Namespace

OpenTelemetry\SDK\Common\Configuration\Parser

Code

private static function validateKeyValuePair(string $pair) {
    if (!str_contains($pair, self::KEY_VALUE_SEPARATOR)) {
        throw new InvalidArgumentException(sprintf('Key-Value pair "%s" does not contain separator "%s"', $pair, self::KEY_VALUE_SEPARATOR));
    }
}

API Navigation

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