You are here

public static function WebformTableRow::processTableRow in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Element/WebformTableRow.php \Drupal\webform\Element\WebformTableRow::processTableRow()

Processes a webfrom table row element.

Parameters

array $element: An associative array containing the properties and children of the container.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

array $complete_form: The complete form structure.

Return value

array The processed element.

File

src/Element/WebformTableRow.php, line 44

Class

WebformTableRow
Provides a render element for webform table row.

Namespace

Drupal\webform\Element

Code

public static function processTableRow(&$element, FormStateInterface $form_state, &$complete_form) {
  $element['#attributes']['class'][] = 'webform-table-row';
  if (!empty($element['#states'])) {
    WebformFormHelper::processStates($element);
  }
  return $element;
}