public static function BarcodeItem::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/ BarcodeItem.php, line 257
Class
- BarcodeItem
- Defines the 'barcode' field type.
Namespace
Drupal\barcode\Plugin\Field\FieldTypeCode
public static function standardBarcodes() {
foreach ([
'UPCA',
'UPCE',
'EAN13',
'EAN8',
'EAN5',
'EAN2',
] as $code) {
$barcodes[$code] = static::$types[$code]['name'];
}
return $barcodes;
}