static protected property HtmlTag::$voidElements

Void elements do not contain values or closing tags.

See also

http://www.w3.org/TR/html5/syntax.html#syntax-start-tag

http://www.w3.org/TR/html5/syntax.html#void-elements

File

core/lib/Drupal/Core/Render/Element/HtmlTag.php, line 41

Class

HtmlTag
Provides a render element for any HTML tag, with properties and value.

Namespace

Drupal\Core\Render\Element

Code

static protected $voidElements = array(
  'area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input',
  'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr',
);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!HtmlTag.php/property/HtmlTag::voidElements/8.1.x