1 layout_renderer_editor.inc LayoutRendererEditor::getUrl($command)

Short-cut to generate a URL path to a particular action.

Parameters

string $command: The command to which the URL should point, usually "configure-block", "remove-block", or "add-block".

...: Any additional parameters to be tacked on the end of the URL.

Return value

string: A Backdrop menu path.

File

core/modules/layout/plugins/renderers/layout_renderer_editor.inc, line 167
Class file to control the main Layout editor.

Class

LayoutRendererEditor

Code

function getUrl($command) {
  $args = func_get_args();
  $command = array_shift($args);
  $url = 'admin/structure/layouts/manage/' . $this->layout->name . '/' . $command . '/' . $this->plugin['name'];
  if ($args) {
    $url .= '/' . implode('/', $args);
  }
  return $url;
}