Drupal 8  8.0.2
FieldUiTable Class Reference
Inheritance diagram for FieldUiTable:

Public Member Functions

 getInfo ()
 
- Public Member Functions inherited from Table
 getInfo ()
 
- Public Member Functions inherited from PluginInspectionInterface
 getPluginId ()
 
 getPluginDefinition ()
 

Static Public Member Functions

static tablePreRender ($elements)
 
static preRenderRegionRows ($elements)
 
static reduceOrder ($array, $a)
 
- Static Public Member Functions inherited from Table
static valueCallback (&$element, $input, FormStateInterface $form_state)
 
static processTable (&$element, FormStateInterface $form_state, &$complete_form)
 
static validateTable (&$element, FormStateInterface $form_state, &$complete_form)
 
static preRenderTable ($element)
 
- Static Public Member Functions inherited from FormElement
static valueCallback (&$element, $input, FormStateInterface $form_state)
 
static processPattern (&$element, FormStateInterface $form_state, &$complete_form)
 
static validatePattern (&$element, FormStateInterface $form_state, &$complete_form)
 
- Static Public Member Functions inherited from RenderElement
static setAttributes (&$element, $class=array())
 
static preRenderGroup ($element)
 
static processAjaxForm (&$element, FormStateInterface $form_state, &$complete_form)
 
static preRenderAjaxForm ($element)
 
static processGroup (&$element, FormStateInterface $form_state, &$complete_form)
 

Detailed Description

Provides a field_ui table element.

("field_ui_table")

Member Function Documentation

getInfo ( )

{Returns the element properties for this element.

Returns
array An array of element properties. See ::getInfo() for documentation of the standard properties of all elements, and the return value format.
}

Implements ElementInterface.

static preRenderRegionRows (   $elements)
static

Performs pre-render to move #regions to rows.

Parameters
array$elementsA structured array containing two sub-levels of elements. Properties used:
  • #tabledrag: The value is a list of $options arrays that are passed to drupal_attach_tabledrag(). The HTML ID of the table is added to each $options array.
Returns
array The $element with prepared variables ready for field-ui-table.html.twig.

References Element\children(), and Html\getClass().

Here is the call graph for this function:

static reduceOrder (   $array,
  $a 
)
static

Determines the rendering order of an array representing a tree.

Callback for array_reduce() within ::tablePreRender().

Parameters
mixed$arrayHolds the return value of the previous iteration; in the case of the first iteration it instead holds the value of the initial array.
mixed$aHolds the value of the current iteration.
Returns
array Array where rendering order has been determined.

Referenced by EntityDisplayFormBase\reduceOrder().

Here is the caller graph for this function:

static tablePreRender (   $elements)
static

Performs pre-render tasks on field_ui_table elements.

Parameters
array$elementsA structured array containing two sub-levels of elements. Properties used:
  • #tabledrag: The value is a list of $options arrays that are passed to drupal_attach_tabledrag(). The HTML ID of the table is added to each $options array.
Returns
array The $element with prepared variables ready for field-ui-table.html.twig.
See Also
drupal_render()
::preRenderTable()

References Element\children(), Html\getClass(), and Drupal\service().

Referenced by EntityDisplayFormBase\tablePreRender().

Here is the call graph for this function:

Here is the caller graph for this function:


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