function views_ui_build_form_url

Create the URL for one of our standard AJAX forms based upon known information about the form.

2 calls to views_ui_build_form_url()
Field::buildOptionsForm in drupal/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php
Default options form that provides the label widget that all fields should have.
ViewsFormBase::getForm in drupal/core/modules/views_ui/lib/Drupal/views_ui/Form/Ajax/ViewsFormBase.php
Implements \Drupal\views_ui\Form\Ajax\ViewsFormInterface::getForm().

File

drupal/core/modules/views_ui/admin.inc, line 398
Provides the Views' administrative interface.

Code

function views_ui_build_form_url($form_state) {
  $ajax = empty($form_state['ajax']) ? 'nojs' : 'ajax';
  $name = $form_state['view']
    ->id();
  $url = "admin/structure/views/{$ajax}/{$form_state['form_key']}/{$name}/{$form_state['display_id']}";
  if (isset($form_state['type'])) {
    $url .= '/' . $form_state['type'];
  }
  if (isset($form_state['id'])) {
    $url .= '/' . $form_state['id'];
  }
  return $url;
}