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

Public Member Functions

 getConstraints ()
 
 storageSettingsForm (array &$form, FormStateInterface $form_state, $has_data)
 
- Public Member Functions inherited from Drupal\tripal_chado\TripalField\ChadoFieldItemBase
 storageSettingsFormBaseTableAjaxCallback ($form, &$form_state)
 
 storageSettingsFormLinkingMethodAjaxCallback ($form, &$form_state)
 
- Public Member Functions inherited from Drupal\tripal\TripalField\TripalFieldItemBase
 fieldSettingsForm (array $form, FormStateInterface $form_state)
 
 tripalStorageId ()
 
 tripalSave ($field_item, $field_name, $prop_types, $prop_values, $entity)
 
 tripalLoad ($field_item, $field_name, $prop_types, $prop_values, $entity)
 
 tripalClear ($field_item, $field_name, $prop_types, $prop_values, $entity)
 
 sanitizeKey ($key)
 
 tripalValuesTemplate ($field_definition, $default_value=NULL)
 

Static Public Member Functions

static defaultFieldSettings ()
 
static defaultStorageSettings ()
 
static generateSampleValue (FieldDefinitionInterface $field_definition)
 
static tripalTypes ($field_definition)
 
- Static Public Member Functions inherited from Drupal\tripal_chado\TripalField\ChadoFieldItemBase
static storageSettingsFormValidateBaseTable (array $form, FormStateInterface $form_state)
 
static storageSettingsFormValidateLinkingMethod (array $form, FormStateInterface $form_state)
 
- Static Public Member Functions inherited from Drupal\tripal\TripalField\TripalFieldItemBase
static fieldSettingsFormValidate (array $form, FormStateInterface $form_state)
 
static propertyDefinitions (FieldStorageDefinitionInterface $field_definition)
 
static schema (FieldStorageDefinitionInterface $field_definition)
 

Static Public Attributes

static $id = "chado_string_type_default"
 

Additional Inherited Members

- Protected Member Functions inherited from Drupal\tripal_chado\TripalField\ChadoFieldItemBase
 getBaseTables ($linked_table, $has_linker_table=FALSE)
 
 getTableColumns ($table_name='', $column_types=[])
 
 getLinkerTables ($linked_table, $base_table, $delimiter=" \u{2192} ")
 
- Protected Member Functions inherited from Drupal\tripal\TripalField\TripalFieldItemBase
 buildVocabularyTermTable (array &$elements, \Drupal\tripal\TripalVocabTerms\TripalTerm $term, \Drupal\tripal\TripalVocabTerms\TripalIdSpaceBase $idSpace, \Drupal\tripal\TripalVocabTerms\TripalVocabularyBase $vocabulary)
 
- Static Protected Attributes inherited from Drupal\tripal_chado\TripalField\ChadoFieldItemBase
static $table_column_delimiter = " \u{2192} "
 

Detailed Description

Plugin implementation of string field type for Chado.

@FieldType( id = "chado_string_type_default", label = @Translation("Chado String Field Type"), description = @Translation("A string field."), default_widget = "chado_string_type_widget", default_formatter = "chado_string_type_formatter", select_base_column = TRUE, valid_base_column_types = { "character varying", }, cardinality = 1 )

Member Function Documentation

◆ defaultFieldSettings()

static Drupal\tripal_chado\Plugin\Field\FieldType\ChadoStringTypeDefault::defaultFieldSettings ( )
static

◆ defaultStorageSettings()

static Drupal\tripal_chado\Plugin\Field\FieldType\ChadoStringTypeDefault::defaultStorageSettings ( )
static

◆ generateSampleValue()

static Drupal\tripal_chado\Plugin\Field\FieldType\ChadoStringTypeDefault::generateSampleValue ( FieldDefinitionInterface  $field_definition)
static

{}

◆ getConstraints()

Drupal\tripal_chado\Plugin\Field\FieldType\ChadoStringTypeDefault::getConstraints ( )

{}

◆ storageSettingsForm()

Drupal\tripal_chado\Plugin\Field\FieldType\ChadoStringTypeDefault::storageSettingsForm ( array &  $form,
FormStateInterface  $form_state,
  $has_data 
)

◆ tripalTypes()

static Drupal\tripal_chado\Plugin\Field\FieldType\ChadoStringTypeDefault::tripalTypes (   $field_definition)
static

{Returns the property types required by this field.

Parameters
object$field_definitionThe field configuration object. This can be an instance of: \Drupal\field\Entity\FieldStorageConfig or \Drupal\field\Entity\FieldConfig
Returns
array Array of \Drupal\tripal\TripalStorage\StoragePropertyTypeBase property types.
}

Implements Drupal\tripal\TripalField\Interfaces\TripalFieldItemInterface.


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