You are here

public function DevelDebugLogExtension::getFunctions in Devel Debug Log 8

File

src/Twig/DevelDebugLogExtension.php, line 24

Class

DevelDebugLogExtension
Provides the Debug log debugging function within Twig templates.

Namespace

Drupal\devel_debug_log\Twig

Code

public function getFunctions() {
  return array(
    new \Twig_SimpleFunction('ddl', array(
      $this,
      'ddl',
    ), array(
      'needs_environment' => TRUE,
      'needs_context' => TRUE,
    )),
  );
}