You are here

protected function SectionListTraitTest::getSectionStorage in Drupal 8

Sets up the section storage entity.

Parameters

array $section_data: An array of section data.

Return value

\Drupal\Core\Entity\EntityInterface The entity.

Overrides SectionStorageTestBase::getSectionStorage

File

core/modules/layout_builder/tests/src/Kernel/SectionListTraitTest.php, line 19

Class

SectionListTraitTest
@coversDefaultClass \Drupal\layout_builder\SectionStorage\SectionStorageTrait

Namespace

Drupal\Tests\layout_builder\Kernel

Code

protected function getSectionStorage(array $section_data) {
  return new TestSectionList($section_data);
}