function DefaultsSectionStorageTest::providerTestGetSectionListFromId

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[[api-linebreak]]

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;
}

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