function MetadataBubblingUrlGeneratorTest::providerUrlBubbleableMetadataBubbling

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Render/MetadataBubblingUrlGeneratorTest.php \Drupal\Tests\Core\Render\MetadataBubblingUrlGeneratorTest::providerUrlBubbleableMetadataBubbling()
  2. 8.9.x core/tests/Drupal/Tests/Core/Render/MetadataBubblingUrlGeneratorTest.php \Drupal\Tests\Core\Render\MetadataBubblingUrlGeneratorTest::providerUrlBubbleableMetadataBubbling()
  3. 11.x core/tests/Drupal/Tests/Core/Render/MetadataBubblingUrlGeneratorTest.php \Drupal\Tests\Core\Render\MetadataBubblingUrlGeneratorTest::providerUrlBubbleableMetadataBubbling()

Data provider for ::testUrlBubbleableMetadataBubbling().

File

core/tests/Drupal/Tests/Core/Render/MetadataBubblingUrlGeneratorTest.php, line 72

Class

MetadataBubblingUrlGeneratorTest
Confirm that the MetadataBubblingUrlGenerator is functioning properly.

Namespace

Drupal\Tests\Core\Render

Code

public static function providerUrlBubbleableMetadataBubbling() {
    return [
        // No bubbling when bubbleable metadata is collected.
[
            TRUE,
            0,
            [],
        ],
        // Bubbling when bubbleable metadata is not collected.
[
            FALSE,
            1,
            [],
        ],
    ];
}

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