function Html::resetSeenIds

Same name in other branches
  1. 9 core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::resetSeenIds()
  2. 8.9.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::resetSeenIds()
  3. 11.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::resetSeenIds()

Resets the list of seen IDs.

6 calls to Html::resetSeenIds()
BlockViewBuilderTest::testBasicRendering in core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php
Tests the rendering of blocks.
FormBuilder::rebuildForm in core/lib/Drupal/Core/Form/FormBuilder.php
FormTestBase::tearDown in core/tests/Drupal/Tests/Core/Form/FormTestBase.php
HtmlTest::testHtmlGetUniqueId in core/tests/Drupal/Tests/Component/Utility/HtmlTest.php
Tests the Html::getUniqueId() method.
ViewsFormBase::getForm in core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
Creates a new instance of this form.

... See full list

File

core/lib/Drupal/Component/Utility/Html.php, line 243

Class

Html
Provides DOMDocument helpers for parsing and serializing HTML strings.

Namespace

Drupal\Component\Utility

Code

public static function resetSeenIds() {
    static::$seenIds = NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.