You are here

public static function WebformTableTrait::setProcessTableSelectCallback in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElement/WebformTableTrait.php \Drupal\webform\Plugin\WebformElement\WebformTableTrait::setProcessTableSelectCallback()

Set process table select element callbacks.

Parameters

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

See also

\Drupal\Core\Render\Element\Tableselect::processTableselect

1 call to WebformTableTrait::setProcessTableSelectCallback()
WebformTableTrait::prepare in src/Plugin/WebformElement/WebformTableTrait.php

File

src/Plugin/WebformElement/WebformTableTrait.php, line 197

Class

WebformTableTrait
Provides a 'table' trait.

Namespace

Drupal\webform\Plugin\WebformElement

Code

public static function setProcessTableSelectCallback(array &$element) {
  $class = get_called_class();
  $element['#process'] = [
    [
      '\\Drupal\\Core\\Render\\Element\\Tableselect',
      'processTableselect',
    ],
    [
      $class,
      'processTableSelect',
    ],
    [
      $class,
      'processTableSelectOptions',
    ],
  ];
}