Tripal
Public Member Functions | Public Attributes | List of all members
Drupal\tripal_chado\Plugin\Field\FieldWidget\ChadoUnitWidgetDefault Class Reference
Inheritance diagram for Drupal\tripal_chado\Plugin\Field\FieldWidget\ChadoUnitWidgetDefault:
Inheritance graph
[legend]
Collaboration diagram for Drupal\tripal_chado\Plugin\Field\FieldWidget\ChadoUnitWidgetDefault:
Collaboration graph
[legend]

Public Member Functions

 formElement (FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state)
 
 massageFormValues (array $values, array $form, FormStateInterface $form_state)
 
- Public Member Functions inherited from Drupal\tripal\TripalField\TripalWidgetBase
 sanitizeKey ($key)
 

Public Attributes

array $term_options
 

Detailed Description

Plugin implementation of default Chado Data Source widget.

@FieldWidget( id = "chado_unit_widget_default", label = @Translation("Chado Unit Widget Default"), description = @Translation("The default unit widget which allows curators to enter unit on the Gene Map content edit page."), field_types = { "chado_unit_type_default" } )

Member Function Documentation

◆ formElement()

Drupal\tripal_chado\Plugin\Field\FieldWidget\ChadoUnitWidgetDefault::formElement ( FieldItemListInterface  $items,
  $delta,
array  $element,
array &  $form,
FormStateInterface  $form_state 
)

{}

◆ massageFormValues()

Drupal\tripal_chado\Plugin\Field\FieldWidget\ChadoUnitWidgetDefault::massageFormValues ( array  $values,
array  $form,
FormStateInterface  $form_state 
)

Member Data Documentation

◆ $term_options

array Drupal\tripal_chado\Plugin\Field\FieldWidget\ChadoUnitWidgetDefault::$term_options
Initial value:
= [
'local:cM',
'local:bp',
'local:bin_unit',
'local:marker_order',
'local:undefined',
]

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