EntityController::addPage
public function EntityController::addPage
public EntityController::addPage($entity_type_id)
Displays add links for the available bundles.
Redirects to the add form if there's only one bundle available.
Parameters
string $entity_type_id: The entity type ID.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse|array If there's only one available bundle, a redirect response. Otherwise, a render array with the add links for each bundle.
File
- core/lib/Drupal/Core/Entity/Controller/EntityController.php, line 115