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
1 string reference to 'WorkbenchContentController::addPage'
File
- src/
Controller/ WorkbenchContentController.php, line 23
Class
- WorkbenchContentController
- Generates the pages defined by Workbench.
Namespace
Drupal\workbench\ControllerCode
public function addPage() {
$output = parent::addPage();
// Allow other modules to add content here.
\Drupal::moduleHandler()
->alter('workbench_create', $output);
return $output;
}