public function OverviewController::styles in Paragraphs Collection 8
Generates an overview page of available styles for the styles plugin.
Return value
array The output render array.
1 string reference to 'OverviewController::styles'
File
- src/
Controller/ OverviewController.php, line 337
Class
- OverviewController
- The controller for overviews of Paragraphs Collection's discoverable items.
Namespace
Drupal\paragraphs_collection\ControllerCode
public function styles() {
$grouped_styles = $this
->getParagraphsTypesGroupedByStyles();
return $this
->formBuilder()
->getForm('Drupal\\paragraphs_collection\\Form\\StylesOverviewForm', $grouped_styles);
}