function twig_show

Wrapper around show() that does not return the content.

See also

show

1 string reference to 'twig_show'
TwigFactory::get in drupal/core/lib/Drupal/Core/Template/TwigFactory.php
Returns a fully initialized Twig_Environment object.

File

drupal/core/themes/engines/twig/twig.engine, line 120
Handles integration of Twig templates with the Drupal theme system.

Code

function twig_show($element) {
  if ($element instanceof TwigReference) {
    $element =& $element
      ->getReference();
    show($element);
  }

  // @todo Add warning in else case
}