Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 8.x
»
Parser.php
»
Twig_Parser
Search Drupal 8.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 8.x
Topics
Classes
Functions
Files
Namespaces
Services
Constants
Globals
Deprecated
public function Twig_Parser::addHandler
File
drupal/
core/
vendor/
twig/
twig/
lib/
Twig/
Parser.php
, line 209
Class
Twig_Parser
Default parser implementation.
Code
public
function
addHandler
(
$name
,
$class
) {
$this
->
handlers
[
$name
] =
$class
; }