function SectionStorageManagerTest::providerTestFindByContext

Same name and namespace in other branches
  1. 8.9.x core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php \Drupal\Tests\layout_builder\Unit\SectionStorageManagerTest::providerTestFindByContext()
  2. 10 core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php \Drupal\Tests\layout_builder\Unit\SectionStorageManagerTest::providerTestFindByContext()
  3. 11.x core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php \Drupal\Tests\layout_builder\Unit\SectionStorageManagerTest::providerTestFindByContext()

Provides test data for ::testFindByContext().

File

core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php, line 195

Class

SectionStorageManagerTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21layout_builder%21src%21SectionStorage%21SectionStorageManager.php/class/SectionStorageManager/9" title="Provides the Section Storage type plugin manager." class="local">\Drupal\layout_builder\SectionStorage\SectionStorageManager</a>

Namespace

Drupal\Tests\layout_builder\Unit

Code

public function providerTestFindByContext() {
    // Data provider values are:
    // - the result for the plugin's isApplicable() method to return.
    $data = [];
    $data['plugin access: true'] = [
        TRUE,
    ];
    $data['plugin access: false'] = [
        FALSE,
    ];
    return $data;
}

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