You are here

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'
paragraphs_collection.routing.yml in ./paragraphs_collection.routing.yml
paragraphs_collection.routing.yml

File

src/Controller/OverviewController.php, line 337

Class

OverviewController
The controller for overviews of Paragraphs Collection's discoverable items.

Namespace

Drupal\paragraphs_collection\Controller

Code

public function styles() {
  $grouped_styles = $this
    ->getParagraphsTypesGroupedByStyles();
  return $this
    ->formBuilder()
    ->getForm('Drupal\\paragraphs_collection\\Form\\StylesOverviewForm', $grouped_styles);
}