Drupal 8  8.0.2
ViewsUIController Class Reference
Inheritance diagram for ViewsUIController:

Public Member Functions

 __construct (ViewsData $views_data)
 
 reportFields ()
 
 reportPlugins ()
 
 ajaxOperation (ViewEntityInterface $view, $op, Request $request)
 
 autocompleteTag (Request $request)
 
 edit (ViewUI $view, $display_id=NULL)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Attributes

 $viewsData
 

Detailed Description

Returns responses for Views UI routes.

Constructor & Destructor Documentation

__construct ( ViewsData  $views_data)

Constructs a new object.

Parameters
\Drupal\views\ViewsDataviews_data The Views data cache object.

Member Function Documentation

ajaxOperation ( ViewEntityInterface  $view,
  $op,
Request  $request 
)

Calls a method on a view and reloads the listing page.

Parameters
\Drupal\views\ViewEntityInterface$viewThe view being acted upon.
string$opThe operation to perform, e.g., 'enable' or 'disable'.
\Symfony\Component\HttpFoundation\Request$requestThe current request.
Returns
| Either returns a rebuilt listing page as an AJAX response, or redirects back to the listing page.

References Drupal\entityManager(), and EntityInterface\save().

Here is the call graph for this function:

autocompleteTag ( Request  $request)

Menu callback for Views tag autocompletion.

Like other autocomplete functions, this function inspects the 'q' query parameter for the string to use to search for suggestions.

Returns
A JSON response containing the autocomplete suggestions for Views tags.

References Drupal\entityManager(), and Html\escape().

Here is the call graph for this function:

static create ( ContainerInterface  $container)
static

{}

Referenced by TagTest\testViewsUiAutocompleteTag().

Here is the caller graph for this function:

edit ( ViewUI  $view,
  $display_id = NULL 
)

Returns the form to edit a view.

Parameters
\Drupal\views_ui\ViewUI$viewThe view to be edited.
string | null$display_id(optional) The display ID being edited. Defaults to NULL, which will load the first available display.
Returns
array An array containing the Views edit and preview forms.

References ViewUI\get(), and ViewUI\label().

Here is the call graph for this function:

reportFields ( )

Lists all instances of fields on any views.

Returns
array The Views fields report page.

References Drupal\entityManager(), ViewExecutable\getHandlerTypes(), Drupal\l(), and t().

Here is the call graph for this function:

reportPlugins ( )

Lists all plugins and what enabled Views use them.

Returns
array The Views plugins report page.

References Drupal\l(), Views\pluginList(), and t().

Here is the call graph for this function:


The documentation for this class was generated from the following file: