You are here

private function ExifFieldWidgetBase::retrieveExifFieldDefaultSeparatorValue in Exif 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldWidget/ExifFieldWidgetBase.php \Drupal\exif\Plugin\Field\FieldWidget\ExifFieldWidgetBase::retrieveExifFieldDefaultSeparatorValue()

Get separator value from settings.

Return value

string separator value or empty string.

1 call to ExifFieldWidgetBase::retrieveExifFieldDefaultSeparatorValue()
ExifFieldWidgetBase::settingsForm in src/Plugin/Field/FieldWidget/ExifFieldWidgetBase.php
Returns a form to configure settings for the widget.

File

src/Plugin/Field/FieldWidget/ExifFieldWidgetBase.php, line 130

Class

ExifFieldWidgetBase
Class ExifFieldWidgetBase provide base methods for all widgets.

Namespace

Drupal\exif\Plugin\Field\FieldWidget

Code

private function retrieveExifFieldDefaultSeparatorValue() {
  $result = $this
    ->getSetting('exif_field_separator');
  if (empty($result)) {
    $result = '';
  }
  return $result;
}