◆ 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 | &$values | The 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_type | The 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:
- tripal_chado/src/Plugin/Field/FieldFormatter/ChadoRelationshipFormatterDefault.php