Tripal
Public Member Functions | Static Public Member Functions | List of all members
Drupal\tripal\Plugin\Field\FieldFormatter\DefaultTripalBooleanTypeFormatter Class Reference
Inheritance diagram for Drupal\tripal\Plugin\Field\FieldFormatter\DefaultTripalBooleanTypeFormatter:
Inheritance graph
[legend]
Collaboration diagram for Drupal\tripal\Plugin\Field\FieldFormatter\DefaultTripalBooleanTypeFormatter:
Collaboration graph
[legend]

Public Member Functions

 viewElements (FieldItemListInterface $items, $langcode)
 
 settingsForm (array $form, FormStateInterface $form_state)
 
 settingsSummary ()
 
- Public Member Functions inherited from Drupal\tripal\TripalField\TripalFormatterBase
 sanitizeKey ($key)
 

Static Public Member Functions

static defaultSettings ()
 
static settingsFormValidateBoolean (array $form, FormStateInterface $form_state)
 

Detailed Description

Plugin implementation of default Tripal boolean type formatter.

@FieldFormatter( id = "default_tripal_boolean_type_formatter", label = @Translation("Default Boolean Type Formatter"), description = @Translation("The default boolean type formatter."), field_types = { "tripal_boolean_type" } )

Member Function Documentation

◆ defaultSettings()

static Drupal\tripal\Plugin\Field\FieldFormatter\DefaultTripalBooleanTypeFormatter::defaultSettings ( )
static

{}

◆ settingsForm()

Drupal\tripal\Plugin\Field\FieldFormatter\DefaultTripalBooleanTypeFormatter::settingsForm ( array  $form,
FormStateInterface  $form_state 
)

{}

◆ settingsFormValidateBoolean()

static Drupal\tripal\Plugin\Field\FieldFormatter\DefaultTripalBooleanTypeFormatter::settingsFormValidateBoolean ( array  $form,
FormStateInterface  $form_state 
)
static

Form element validation handler for boolean strings

Parameters
array$formThe form where the settings form is being included in.
\Drupal\Core\Form\FormStateInterface$form_stateThe form state of the (entire) form.

◆ settingsSummary()

Drupal\tripal\Plugin\Field\FieldFormatter\DefaultTripalBooleanTypeFormatter::settingsSummary ( )

{}

◆ viewElements()

Drupal\tripal\Plugin\Field\FieldFormatter\DefaultTripalBooleanTypeFormatter::viewElements ( FieldItemListInterface  $items,
  $langcode 
)

The documentation for this class was generated from the following file: