You are here

protected function WebformCustomComposite::buildCompositeElementsTable in Webform 8.5

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

Build the composite elements settings table.

Parameters

array $form: An associative array containing the structure of the form.

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

Return value

array A renderable array container the composite elements settings table.

Overrides WebformCompositeBase::buildCompositeElementsTable

File

src/Plugin/WebformElement/WebformCustomComposite.php, line 152

Class

WebformCustomComposite
Provides a custom composite element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function buildCompositeElementsTable(array $form, FormStateInterface $form_state) {
  return [
    '#type' => 'webform_element_composite',
    '#title' => $this
      ->t('Elements'),
    '#title_display' => 'invisible',
  ];
}