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

Breadcrumb

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

function Constraint::convertJsonPointerIntoPropertyPath

Parameters

JsonPointer $pointer:

Return value

string property path

File

vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php, line 207

Class

Constraint
The Base Constraints, all Validators should extend this class

Namespace

JsonSchema\Constraints

Code

protected function convertJsonPointerIntoPropertyPath(JsonPointer $pointer) {
    $result = array_map(function ($path) {
        return sprintf(is_numeric($path) ? '[%d]' : '.%s', $path);
    }, $pointer->getPropertyPaths());
    return trim(implode('', $result), '.');
}

API Navigation

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