You are here

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

1 call to EntityReferenceBrowserTableWidget::buildTableHeaders()
EntityReferenceBrowserTableWidget::displayCurrentSelection in src/Plugin/Field/FieldWidget/EntityReferenceBrowserTableWidget.php
Builds the render array for displaying the current results as a table.

File

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

Class

EntityReferenceBrowserTableWidget
Plugin implementation of the 'entity_reference_browser_table_widget' widget.

Namespace

Drupal\entity_browser_table\Plugin\Field\FieldWidget

Code

public function buildTableHeaders() {
  return array_filter([
    '',
    $this
      ->getFirstColumnHeader(),
    $this
      ->getStatusColumnHeader(),
    $this
      ->getActionColumnHeader(),
  ], function ($header) {
    return $header !== NULL;
  });
}