You are here

protected function LibraryItemFieldWidget::generateBarcode in Library 8

Return whether to generate barcodes from config.

Return value

bool Generate barcode.

1 call to LibraryItemFieldWidget::generateBarcode()
LibraryItemFieldWidget::formElement in src/Plugin/Field/FieldWidget/LibraryItemFieldWidget.php
Returns the form for a single field widget.

File

src/Plugin/Field/FieldWidget/LibraryItemFieldWidget.php, line 187

Class

LibraryItemFieldWidget
Plugin implementation of the 'library_item_field_widget' widget.

Namespace

Drupal\library\Plugin\Field\FieldWidget

Code

protected function generateBarcode() {
  return $this->fieldDefinition
    ->getSetting('barcode_generation');
}