You are here

public function WorkbenchContentController::addPage in Workbench 8

Simple page to show list of content type to create.

Return value

array A Render API array of content creation options.

Overrides NodeController::addPage

See also

hook_workbench_create_alter()

1 string reference to 'WorkbenchContentController::addPage'
workbench.routing.yml in ./workbench.routing.yml
workbench.routing.yml

File

src/Controller/WorkbenchContentController.php, line 23

Class

WorkbenchContentController
Generates the pages defined by Workbench.

Namespace

Drupal\workbench\Controller

Code

public function addPage() {
  $output = parent::addPage();

  // Allow other modules to add content here.
  \Drupal::moduleHandler()
    ->alter('workbench_create', $output);
  return $output;
}