You are here

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

Same name and namespace in other branches
  1. 8 modules/rh_node/tests/src/Functional/NodeBehaviorSettingsFormTest.php \Drupal\Tests\rh_node\Functional\NodeBehaviorSettingsFormTest::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_node/tests/src/Functional/NodeBehaviorSettingsFormTest.php, line 119

Class

NodeBehaviorSettingsFormTest
Test the functionality of the rabbit hole form additions to the node form.

Namespace

Drupal\Tests\rh_node\Functional

Code

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