Documentation

ISBN13Formatter extends FormatterBase
in package

Plugin implementation of the 'ISBN 13' formatter.

This formatter only displays the ISBN 13 if it's provided.

Attributes
#[FieldFormatter]
$id: 'isbn_13'
$label: new \Drupal\Core\StringTranslation\TranslatableMarkup('ISBN 13')
$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
Return values
array<string|int, mixed>

        
On this page

Search results