You are here

public function DefaultsSectionStorageTest::providerTestGetSectionListFromId in Drupal 8

Provides data for ::testGetSectionListFromId().

File

core/modules/layout_builder/tests/src/Unit/DefaultsSectionStorageTest.php, line 194

Class

DefaultsSectionStorageTest
@coversDefaultClass \Drupal\layout_builder\Plugin\SectionStorage\DefaultsSectionStorage

Namespace

Drupal\Tests\layout_builder\Unit

Code

public function providerTestGetSectionListFromId() {
  $data = [];
  $data['with value'] = [
    TRUE,
    'foo.bar.baz',
    'foo.bar.baz',
  ];
  $data['without value, empty defaults'] = [
    FALSE,
    NULL,
    '',
  ];
  return $data;
}