You are here

public function BusinessRulesItemPluginBase::getEditUrl in Business Rules 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/BusinessRulesItemPluginBase.php \Drupal\business_rules\Plugin\BusinessRulesItemPluginBase::getEditUrl()

Get the redirect url for the item edit-form route.

Parameters

\Drupal\business_rules\ItemInterface $item: The business rule item.

Return value

\Drupal\Core\Url The Url.

Overrides BusinessRulesItemPluginInterface::getEditUrl

File

src/Plugin/BusinessRulesItemPluginBase.php, line 86

Class

BusinessRulesItemPluginBase
Base Class for Business rules plugins.

Namespace

Drupal\business_rules\Plugin

Code

public function getEditUrl(ItemInterface $item) {
  return $item
    ->toUrl('edit-form');
}