Tripal
Public Member Functions | Protected Attributes | List of all members
Drupal\tripal_chado\Entity\ChadoTermMapping Class Reference
Inheritance diagram for Drupal\tripal_chado\Entity\ChadoTermMapping:
Inheritance graph
[legend]
Collaboration diagram for Drupal\tripal_chado\Entity\ChadoTermMapping:
Collaboration graph
[legend]

Public Member Functions

 description ()
 
 getTableNames ()
 
 getColumnTermId ($table, $column)
 

Protected Attributes

 $id
 
 $label
 
 $description
 
 $tables
 

Detailed Description

Defines the Chado Term Mapping Configuration entity.

@ConfigEntityType( id = "chado_term_mapping", label = @Translation("Chado Term Mapping"), handlers = { "list_builder" = "Drupal\tripal_chado\ListBuilders\ChadoTermMappingListBuilder", "form" = { "add" = "Drupal\tripal_chado\Form\ChadoTermMappingForm", "edit" = "Drupal\tripal_chado\Form\ChadoTermMappingForm", "delete" = "Drupal\tripal_chado\Form\ChadoTermMappingDeleteForm", } }, config_prefix = "chado_term_mapping", admin_permission = "administer tripal", entity_keys = { "id" = "id", "label" = "label", }, config_export = { "id", "label", "description", "tables" }, links = { "edit-form" = "/admin/tripal/storage/chado/terms/{chado_term_mapping}", "delete-form" = "/admin/tripal/storage/chado/terms/{chado_term_mapping}/delete", } )

Member Function Documentation

◆ description()

Drupal\tripal_chado\Entity\ChadoTermMapping::description ( )

Retrieves the current description for the term mapping setup.

Returns
string

◆ getColumnTermId()

Drupal\tripal_chado\Entity\ChadoTermMapping::getColumnTermId (   $table,
  $column 
)

Retrieves the Term Id for a given Chado table and column

Parameters
string$tableThe Chado table name
string$columnThe Chado column name
Returns
string The term ID for the column.

◆ getTableNames()

Drupal\tripal_chado\Entity\ChadoTermMapping::getTableNames ( )

Retrieves a list of table names, sorted alphabetically.

Returns
array

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