You are here

public static function MatrixBarcodeItem::standardBarcodes in Barcode 8

Get the standard allowed type of barcodes.

Return value

array An array of barcode types.

Overrides BarcodeBase::standardBarcodes

File

src/Plugin/Field/FieldType/MatrixBarcodeItem.php, line 48

Class

MatrixBarcodeItem
Defines the 'barcode_matrix' field type.

Namespace

Drupal\barcode\Plugin\Field\FieldType

Code

public static function standardBarcodes() {
  $barcodes = [];
  foreach ($types as $code) {
    $barcodes[$code] = static::$types[$code]['name'];
  }
  return $barcodes;
}