function twig_hide

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

See also

hide

1 string reference to 'twig_hide'
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 107
Handles integration of Twig templates with the Drupal theme system.

Code

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

  // @todo Add warning in else case
}