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

Breadcrumb

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

function Inline::initialize

2 calls to Inline::initialize()
Inline::parse in vendor/symfony/yaml/Inline.php
Converts a YAML string to a PHP value.
Parser::doParse in vendor/symfony/yaml/Parser.php

File

vendor/symfony/yaml/Inline.php, line 37

Class

Inline
Inline implements a YAML parser/dumper for the YAML inline syntax.

Namespace

Symfony\Component\Yaml

Code

public static function initialize(int $flags, ?int $parsedLineNumber = null, ?string $parsedFilename = null) : void {
    self::$exceptionOnInvalidType = (bool) (Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE & $flags);
    self::$objectSupport = (bool) (Yaml::PARSE_OBJECT & $flags);
    self::$objectForMap = (bool) (Yaml::PARSE_OBJECT_FOR_MAP & $flags);
    self::$constantSupport = (bool) (Yaml::PARSE_CONSTANT & $flags);
    self::$parsedFilename = $parsedFilename;
    if (null !== $parsedLineNumber) {
        self::$parsedLineNumber = $parsedLineNumber;
    }
}

API Navigation

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