Documentation

ISBNDefaultFormatter extends FormatterBase
in package

Plugin implementation of the 'ISBN' default formatter.

Will display No ISBN available if no isbn is provided, or will display each ISBN individually if they are provided.

Attributes
#[FieldFormatter]
$id: 'isbn_default'
$label: new \Drupal\Core\StringTranslation\TranslatableMarkup('Default')
$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