You are here

private function MenuBuilder::getUriString in Context 8

Same name and namespace in other branches
  1. 8.4 modules/context_ui/src/MenuBuilder.php \Drupal\context_ui\MenuBuilder::getUriString()

Return the URI string of the given context entity.

Parameters

\Drupal\context\Entity\Context $entity The context entity.:

Return value

string The URI string.

2 calls to MenuBuilder::getUriString()
MenuBuilder::addSubMenuItem in modules/context_ui/src/MenuBuilder.php
Adds a submenu item for the $entity item.
MenuBuilder::updateSubMenuItem in modules/context_ui/src/MenuBuilder.php
Updates the submenu item of the $entity item.

File

modules/context_ui/src/MenuBuilder.php, line 116

Class

MenuBuilder
Implements the MenuBuilder class, which configures and updates the submenu context items

Namespace

Drupal\context_ui

Code

private function getUriString(Context $entity) {
  $url = Url::fromRoute('entity.context.edit_form', [
    'context' => $entity
      ->id(),
  ]);
  return $url
    ->toUriString();
}