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

Public Member Functions

 storageSettingsForm (array &$form, FormStateInterface $form_state, $has_data)
 
 getConstraints ()
 
- 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\TripalField\TripalFieldItemBase
static fieldSettingsFormValidate (array $form, FormStateInterface $form_state)
 
static propertyDefinitions (FieldStorageDefinitionInterface $field_definition)
 
static schema (FieldStorageDefinitionInterface $field_definition)
 

Static Public Attributes

static $id = "tripal_string_type"
 

Additional Inherited Members

- 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)
 

Detailed Description

Plugin implementation of Tripal string field type.

@FieldType( id = "tripal_string_type", label = @Translation("Tripal String Field Type"), description = @Translation("A string field."), default_widget = "default_tripal_string_type_widget", default_formatter = "default_tripal_string_type_formatter" )

Member Function Documentation

◆ defaultFieldSettings()

static Drupal\tripal\Plugin\Field\FieldType\TripalStringTypeItem::defaultFieldSettings ( )
static

◆ defaultStorageSettings()

static Drupal\tripal\Plugin\Field\FieldType\TripalStringTypeItem::defaultStorageSettings ( )
static

◆ generateSampleValue()

static Drupal\tripal\Plugin\Field\FieldType\TripalStringTypeItem::generateSampleValue ( FieldDefinitionInterface  $field_definition)
static

{}

◆ getConstraints()

Drupal\tripal\Plugin\Field\FieldType\TripalStringTypeItem::getConstraints ( )

{}

◆ storageSettingsForm()

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

◆ tripalTypes()

static Drupal\tripal\Plugin\Field\FieldType\TripalStringTypeItem::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: