Tripal
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Drupal\tripal_chado\Plugin\Field\FieldFormatter\ChadoRelationshipFormatterDefault Class Reference
Inheritance diagram for Drupal\tripal_chado\Plugin\Field\FieldFormatter\ChadoRelationshipFormatterDefault:
Inheritance graph
[legend]
Collaboration diagram for Drupal\tripal_chado\Plugin\Field\FieldFormatter\ChadoRelationshipFormatterDefault:
Collaboration graph
[legend]

Public Member Functions

 viewElements (FieldItemListInterface $items, $langcode)
 
- Public Member Functions inherited from Drupal\tripal_chado\TripalField\ChadoFormatterBase
 settingsForm (array $form, FormStateInterface $form_state)
 
 settingsSummary ()
 
 settingsFormValidateTokenString (array $form, FormStateInterface $form_state)
 
- Public Member Functions inherited from Drupal\tripal\TripalField\TripalFormatterBase
 sanitizeKey ($key)
 
 createListMarkup (array $list)
 
 addMaxDeltaWarning (array &$elements, array &$list, ?array $markup=NULL)
 

Static Public Member Functions

static defaultSettings ()
 

Protected Member Functions

 formatTypeName (&$values)
 
 get_rel_verb (string $rel_type)
 

Additional Inherited Members

- Public Attributes inherited from Drupal\tripal\TripalField\TripalFormatterBase
int $max_delta = 100
 

Member Function Documentation

◆ defaultSettings()

static Drupal\tripal_chado\Plugin\Field\FieldFormatter\ChadoRelationshipFormatterDefault::defaultSettings ( )
static

{}

◆ formatTypeName()

Drupal\tripal_chado\Plugin\Field\FieldFormatter\ChadoRelationshipFormatterDefault::formatTypeName ( $values)
protected

Format the controlled vocabulary term for nicer display. Tripal 3: tripal_chado/includes/TripalFields/sbo__relationship/sbo__relationship_formatter.inc

Parameters
array&$valuesThe associative array of field values. The value with the key 'term_name' is updated.

◆ get_rel_verb()

Drupal\tripal_chado\Plugin\Field\FieldFormatter\ChadoRelationshipFormatterDefault::get_rel_verb ( string  $rel_type)
protected

A helper function to define English verbs for relationship types.

Parameters
string$rel_typeThe vocabulary term name for the relationship.
Returns
string The verb to use when creating a sentence of the relationship.

◆ viewElements()

Drupal\tripal_chado\Plugin\Field\FieldFormatter\ChadoRelationshipFormatterDefault::viewElements ( FieldItemListInterface  $items,
  $langcode 
)

{}


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