AttributeArray::RENDER_EMPTY_ATTRIBUTE
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Template/AttributeArray.php \Drupal\Core\Template\AttributeArray::RENDER_EMPTY_ATTRIBUTE
- 10 core/lib/Drupal/Core/Template/AttributeArray.php \Drupal\Core\Template\AttributeArray::RENDER_EMPTY_ATTRIBUTE
- 11.x core/lib/Drupal/Core/Template/AttributeArray.php \Drupal\Core\Template\AttributeArray::RENDER_EMPTY_ATTRIBUTE
Ensures empty array as a result of array_filter will not print '$name=""'.
Overrides AttributeValueBase::RENDER_EMPTY_ATTRIBUTE
See also
\Drupal\Core\Template\AttributeArray::__toString()
\Drupal\Core\Template\AttributeValueBase::render()
File
-
core/
lib/ Drupal/ Core/ Template/ AttributeArray.php, line 33
Class
- AttributeArray
- A class that defines a type of Attribute that can be added to as an array.
Namespace
Drupal\Core\TemplateCode
const RENDER_EMPTY_ATTRIBUTE = FALSE;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.