function OverridesSectionStorageTest::providerTestGetSectionListFromId
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\UnitCode
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.