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

Breadcrumb

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

function ParseException::setSnippet

Sets the snippet of code near the error.

File

vendor/symfony/yaml/Exception/ParseException.php, line 50

Class

ParseException
Exception class thrown when an error occurs during parsing.

Namespace

Symfony\Component\Yaml\Exception

Code

public function setSnippet(string $snippet) : void {
    $this->snippet = $snippet;
    $this->updateRepr();
}

API Navigation

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