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

Breadcrumb

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

function JsonPointer::encodePath

Parameters

string $path:

Return value

string

File

vendor/justinrainbow/json-schema/src/JsonSchema/Entity/JsonPointer.php, line 94

Class

JsonPointer
@package JsonSchema\Entity

Namespace

JsonSchema\Entity

Code

private function encodePath($path) {
    return strtr($path, array(
        '/' => '~1',
        '~' => '~0',
        '%' => '%25',
    ));
}

API Navigation

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