You are here

protected function ComponentFormBase::getLayoutRegionNames in Layout Paragraphs 2.0.x

Returns an array of region names for a given layout.

Parameters

string $layout_id: The layout id.

Return value

array An array of regions.

1 call to ComponentFormBase::getLayoutRegionNames()
EditComponentForm::orphanedItemsElement in src/Form/EditComponentForm.php
Form #process callback.

File

src/Form/ComponentFormBase.php, line 493

Class

ComponentFormBase
Class LayoutParagraphsComponentFormBase.

Namespace

Drupal\layout_paragraphs\Form

Code

protected function getLayoutRegionNames($layout_id) {
  return array_map(function ($region) {
    return $region['label'];
  }, $this
    ->getLayoutRegions($layout_id));
}