You are here

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

Throws

\Drupal\Component\Plugin\Exception\PluginException

File

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

Class

EntityReferenceBrowserTableWidget
Plugin implementation of the 'entity_reference_browser_table_widget' widget.

Namespace

Drupal\entity_browser_table\Plugin\Field\FieldWidget

Code

public function getFieldWidgetDisplay() {
  return $this->fieldDisplayManager
    ->createInstance($this
    ->getSetting('field_widget_display'), $this
    ->getSetting('field_widget_display_settings') + [
    'entity_type' => $this->fieldDefinition
      ->getFieldStorageDefinition()
      ->getSetting('target_type'),
  ]);
}