You are here

public function EntityReferenceBrowserTableWidget::getAdditionalFields in Entity Browser - Table Layout 8

Return value

array|NULL

File

src/Plugin/Field/FieldWidget/EntityReferenceBrowserTableWidget.php, line 396

Class

EntityReferenceBrowserTableWidget
Plugin implementation of the 'entity_reference_browser_table_widget' widget.

Namespace

Drupal\entity_browser_table\Plugin\Field\FieldWidget

Code

public function getAdditionalFields() {
  $setting = $this
    ->getSetting('additional_fields');
  $fields = isset($setting['options']) ? $setting['options'] : NULL;
  if ($setting === NULL || $fields === NULL) {
    return NULL;
  }
  return array_filter($fields);
}