◆ addPropertyDefinition()
| Drupal\tripal_chado\TypedData\ChadoDataDefinition::addPropertyDefinition |
( |
|
$key, |
|
|
|
$definition |
|
) |
| |
Allows fields to dynamically add nested chado data definitions.
- Parameters
-
| string | $key | The name of the data definition. This should be the key for a specific piece of data (e.g. genus). |
| object | $definition | The Data definition for this particular piece of data. This should be an object whose type implements the \Drupal\Core\TypedData\DataDefinitionInterface. |
◆ create()
| static Drupal\tripal_chado\TypedData\ChadoDataDefinition::create |
( |
|
$type = 'chado' | ) |
|
|
static |
Creates a new chado data definition.
- Parameters
-
| string | $type | (optional) The data type of the chado data. Defaults to 'chado'. |
- Returns
- static
◆ getPropertyDefinitions()
| Drupal\tripal_chado\TypedData\ChadoDataDefinition::getPropertyDefinitions |
( |
| ) |
|
The documentation for this class was generated from the following file:
- tripal_chado/src/TypedData/ChadoDataDefinition.php