Tripal
Public Member Functions | List of all members
Drupal\tripal\TripalField\TripalWidgetBase Class Reference
Inheritance diagram for Drupal\tripal\TripalField\TripalWidgetBase:
Inheritance graph
[legend]
Collaboration diagram for Drupal\tripal\TripalField\TripalWidgetBase:
Collaboration graph
[legend]

Public Member Functions

 sanitizeKey ($key)
 

Detailed Description

Defines the Tripal field widget base class.

Member Function Documentation

◆ sanitizeKey()

Drupal\tripal\TripalField\TripalWidgetBase::sanitizeKey (   $key)

Santizies a property key.

Property keys are often controlled vocabulary IDs, which is the IdSpace and accession separated by a colon. The colon is not supported by the storage backend and must be converted to an underscore. This function performs that task

Parameters
string$key
Returns
string A santizied string.

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