protected function ProductBehaviorSettingsFormTest::getEditBundleUrl in Rabbit Hole 2.x
Same name and namespace in other branches
- 8 modules/rh_commerce/tests/src/Functional/ProductBehaviorSettingsFormTest.php \Drupal\Tests\rh_commerce\Functional\ProductBehaviorSettingsFormTest::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_commerce/ tests/ src/ Functional/ ProductBehaviorSettingsFormTest.php, line 125
Class
- ProductBehaviorSettingsFormTest
- Test the functionality of the rabbit hole form additions to Commerce Product.
Namespace
Drupal\Tests\rh_commerce\FunctionalCode
protected function getEditBundleUrl($bundle) {
return Url::fromRoute('entity.commerce_product_type.edit_form', [
'commerce_product_type' => $bundle,
]);
}