public function EntityqueueDragtableWidget::settingsSummary in Entityqueue 8
Returns a short summary for the current widget settings.
If an empty result is returned, a UI can still be provided to display a settings form in case the widget has configurable settings.
Return value
array A short summary of the widget settings.
Overrides EntityReferenceAutocompleteWidget::settingsSummary
File
- src/
Plugin/ Field/ FieldWidget/ EntityqueueDragtableWidget.php, line 71
Class
- EntityqueueDragtableWidget
- Plugin implementation of the 'entityqueue_dragtable' widget.
Namespace
Drupal\entityqueue\Plugin\Field\FieldWidgetCode
public function settingsSummary() {
$summary = parent::settingsSummary();
$settings = $this
->getSettings();
if (!empty($settings['link_to_entity'])) {
$summary[] = $this
->t('Link to the referenced entity');
}
if (!empty($settings['link_to_edit_form'])) {
$summary[] = $this
->t('Link to the edit form of the referenced entity');
}
return $summary;
}