Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

Fix Media Bundle create route in Upload Plugin #16

Open
wants to merge 1 commit into
base: 8.x-1.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Plugin/EntityBrowser/Widget/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
}

if (empty($bundle_options)) {
$url = Url::fromRoute('media.bundle_add')->toString();
$url = Url::fromRoute('entity.media_bundle.add_form')->toString();
$form['media_bundle'] = [
'#markup' => $this->t("You don't have media bundle of the Image type. You should <a href='!link'>create one</a>", ['!link' => $url]),
];
Expand Down