Drupal 8  8.0.2
ViewsMenuLinkForm Class Reference
Inheritance diagram for ViewsMenuLinkForm:

Public Member Functions

 buildConfigurationForm (array $form, FormStateInterface $form_state)
 
 extractFormValues (array &$form, FormStateInterface $form_state)
 

Protected Attributes

 $menuLink
 

Additional Inherited Members

Detailed Description

Provides a form to edit Views menu links.

This provides the feature to edit the title and description, in contrast to the default menu link form.

See Also

Member Function Documentation

buildConfigurationForm ( array  $form,
FormStateInterface  $form_state 
)

{Form constructor.Plugin forms are embedded in other forms. In order to know where the plugin form is located in the parent form, #parents and #array_parents must be known, but these are not available during the initial build phase. In order to have these properties available when building the plugin form's elements, let this method return a form element that has a #process callback and build the rest of the form in the callback. By the time the callback is executed, the element's #parents and #array_parents properties will have been set by the form API. For more documentation on #parents and #array_parents, see .

Parameters
array$formAn associative array containing the initial structure of the plugin form.
\Drupal\Core\Form\FormStateInterface$form_stateThe current state of the complete form.
Returns
array The form structure.
}

Implements PluginFormInterface.

References Drupal\moduleHandler(), t(), and Drupal\url().

Here is the call graph for this function:

extractFormValues ( array &  $form,
FormStateInterface  $form_state 
)

{Extracts a plugin definition from form values.

Parameters
array$formAn associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface$form_stateThe current state of the form.
Returns
array The new plugin definition values taken from the form values.
}

Implements MenuLinkFormInterface.

References FormStateInterface\getValue().

Here is the call graph for this function:


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