Documentation

DefaultISBNWidget extends WidgetBase
in package

FinalYes

Defines the 'isbn' field widget.

Attributes
#[FieldWidget]
$id: 'isbn'
$label: new \Drupal\Core\StringTranslation\TranslatableMarkup('ISBN')
$field_types: ['isbn']

Table of Contents

Methods

ajaxRefresh()  : mixed
Ajax callback to refresh the widget.
formElement()  : array<string|int, mixed>
{@inheritdoc}

Methods

ajaxRefresh()

Ajax callback to refresh the widget.

public ajaxRefresh(mixed &$form, FormStateInterface $form_state) : mixed
Parameters
$form : mixed
$form_state : FormStateInterface

formElement()

{@inheritdoc}

public formElement(FieldItemListInterface $items, mixed $delta, array<string|int, mixed> $element, array<string|int, mixed> &$form, FormStateInterface $form_state) : array<string|int, mixed>
Parameters
$items : FieldItemListInterface
$delta : mixed
$element : array<string|int, mixed>
$form : array<string|int, mixed>
$form_state : FormStateInterface
Return values
array<string|int, mixed>

        
On this page

Search results