You are here

protected function MediaBehaviorSettingsFormTest::getEditBundleUrl in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 modules/rh_media/tests/src/Functional/MediaBehaviorSettingsFormTest.php \Drupal\Tests\rh_media\Functional\MediaBehaviorSettingsFormTest::getEditBundleUrl()

Returns URL of the "Edit" entity bundle page.

Parameters

string $bundle: Entity bundle id.

Return value

\Drupal\Core\Url URL object.

Overrides RabbitHoleBehaviorSettingsFormTestBase::getEditBundleUrl

File

modules/rh_media/tests/src/Functional/MediaBehaviorSettingsFormTest.php, line 111

Class

MediaBehaviorSettingsFormTest
Test the functionality of the rabbit hole form additions to the media.

Namespace

Drupal\Tests\rh_media\Functional

Code

protected function getEditBundleUrl($bundle) {
  return Url::fromRoute('entity.media_type.edit_form', [
    'media_type' => $bundle,
  ]);
}