Drupal 8  8.0.2
FormHelper Class Reference

Static Public Member Functions

static rewriteStatesSelector (array &$elements, $search, $replace)
 

Static Protected Member Functions

static processStatesArray (array &$conditions, $search, $replace)
 

Detailed Description

Provides helpers to operate on forms.

Member Function Documentation

static processStatesArray ( array &  $conditions,
  $search,
  $replace 
)
staticprotected

Helper function for self::rewriteStatesSelector().

Parameters
array$conditionsStates conditions array.
string$searchA partial or entire jQuery selector string to replace in #states.
string$replaceThe string to replace all instances of $search with.
static rewriteStatesSelector ( array &  $elements,
  $search,
  $replace 
)
static

Rewrite #states selectors.

Parameters
array$elementsA renderable array element having a #states property.
string$searchA partial or entire jQuery selector string to replace in #states.
string$replaceThe string to replace all instances of $search with.
See Also
drupal_process_states()

References Element\children().

Referenced by FilterPluginBase\buildExposedFiltersGroupForm(), Field\buildOptionsForm(), and FormHelperTest\testRewriteStatesSelector().

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: