You are here

public function OverridesSectionStorageTest::providerTestGetSectionListFromId in Drupal 8

Provides data for ::testGetSectionListFromId().

File

core/modules/layout_builder/tests/src/Unit/OverridesSectionStorageTest.php, line 164

Class

OverridesSectionStorageTest
@coversDefaultClass \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage

Namespace

Drupal\Tests\layout_builder\Unit

Code

public function providerTestGetSectionListFromId() {
  $data = [];
  $data['with value, with layout'] = [
    TRUE,
    'my_entity_type',
    'my_entity_type.entity_with_layout',
  ];
  $data['with value, without layout'] = [
    FALSE,
    'my_entity_type',
    'my_entity_type.entity_without_layout',
  ];
  $data['empty value, empty defaults'] = [
    FALSE,
    NULL,
    '',
  ];
  return $data;
}