You are here

public function YamlFormElementBase::getTableColumn in YAML Form 8

Get element's table column(s) settings.

Parameters

array $element: An element.

Return value

array An associative array containing an element's table column(s).

Overrides YamlFormElementInterface::getTableColumn

3 calls to YamlFormElementBase::getTableColumn()
OptionsBase::getTableColumn in src/Plugin/YamlFormElement/OptionsBase.php
Get element's table column(s) settings.
YamlFormCompositeBase::getTableColumn in src/Plugin/YamlFormElement/YamlFormCompositeBase.php
Get element's table column(s) settings.
YamlFormLikert::getTableColumn in src/Plugin/YamlFormElement/YamlFormLikert.php
Get element's table column(s) settings.
3 methods override YamlFormElementBase::getTableColumn()
OptionsBase::getTableColumn in src/Plugin/YamlFormElement/OptionsBase.php
Get element's table column(s) settings.
YamlFormCompositeBase::getTableColumn in src/Plugin/YamlFormElement/YamlFormCompositeBase.php
Get element's table column(s) settings.
YamlFormLikert::getTableColumn in src/Plugin/YamlFormElement/YamlFormLikert.php
Get element's table column(s) settings.

File

src/YamlFormElementBase.php, line 693

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

public function getTableColumn(array $element) {
  $key = $element['#yamlform_key'];
  return [
    'element__' . $key => [
      'title' => $this
        ->getAdminLabel($element),
      'sort' => TRUE,
      'key' => $key,
      'property_name' => NULL,
      'element' => $element,
      'plugin' => $this,
    ],
  ];
}