ISBN10Formatter
extends FormatterBase
in package
Plugin implementation of the 'ISBN 10' formatter.
This formatter only displays the ISBN 10 if it's provided.
Attributes
- #[FieldFormatter]
- $id: 'isbn_10'
- $label: new \Drupal\Core\StringTranslation\TranslatableMarkup('ISBN 10')
- $field_types: ['isbn']
Table of Contents
Methods
- viewElements() : array<string|int, mixed>
- {@inheritdoc}
Methods
viewElements()
{@inheritdoc}
public
viewElements(FieldItemListInterface $items, mixed $langcode) : array<string|int, mixed>
Parameters
- $items : FieldItemListInterface
- $langcode : mixed