You are here

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

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

Get the redirect url for the item collection route.

Parameters

\Drupal\business_rules\ItemInterface $item: The item go get the Url.

Return value

\Drupal\Core\Url The Url.

Overrides BusinessRulesItemPluginInterface::getRedirectUrl

File

src/Plugin/BusinessRulesItemPluginBase.php, line 79

Class

BusinessRulesItemPluginBase
Base Class for Business rules plugins.

Namespace

Drupal\business_rules\Plugin

Code

public function getRedirectUrl(ItemInterface $item) {
  return $item
    ->toUrl('collection');
}