protected function ParagraphsGridConfigForm::getGridTypeOptions in Paragraphs grid 8
Returns an option pack for select.
Return value
array The grids as select options.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
1 call to ParagraphsGridConfigForm::getGridTypeOptions()
File
- src/
Form/ ParagraphsGridConfigForm.php, line 99
Class
- ParagraphsGridConfigForm
- Class ParagraphsGridConfigForm.
Namespace
Drupal\paragraphs_grid\FormCode
protected function getGridTypeOptions() {
$options = [];
foreach ($this
->getGrids() as $grid) {
/** @var \Drupal\paragraphs_grid\Entity\GridEntity $grid */
$options['paragraphs_grid.grid_entity.' . $grid
->id()] = $grid
->label();
}
return $options;
}