public function EntityReferenceBrowserTableWidget::getReplaceButtonAccess in Entity Browser - Table Layout 8
1 call to EntityReferenceBrowserTableWidget::getReplaceButtonAccess()
- EntityReferenceBrowserTableWidget::buildReplaceButton in src/
Plugin/ Field/ FieldWidget/ EntityReferenceBrowserTableWidget.php
File
- src/
Plugin/ Field/ FieldWidget/ EntityReferenceBrowserTableWidget.php, line 327
Class
- EntityReferenceBrowserTableWidget
- Plugin implementation of the 'entity_reference_browser_table_widget' widget.
Namespace
Drupal\entity_browser_table\Plugin\Field\FieldWidgetCode
public function getReplaceButtonAccess($entities) {
return $this
->getSetting('field_widget_replace') && count($entities) === 1;
}