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

Breadcrumb

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

function Error::getSourceContext

File

vendor/twig/twig/src/Error/Error.php, line 91

Class

Error
Twig base exception.

Namespace

Twig\Error

Code

public function getSourceContext() : ?Source {
    return $this->name ? new Source($this->sourceCode, $this->name, $this->sourcePath) : null;
}

API Navigation

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