private function ViewsFieldTemplate::getTableBaseField in Calendar 8
Return the base field from a View tabel array.
Parameters
array $table_data:
Return value
null|string
2 calls to ViewsFieldTemplate::getTableBaseField()
- ViewsFieldTemplate::getDerivativeDefinitions in src/
Plugin/ Derivative/ ViewsFieldTemplate.php - Gets the definition of all derivatives of a base plugin.
- ViewsFieldTemplate::setConfigurableFieldsDerivatives in src/
Plugin/ Derivative/ ViewsFieldTemplate.php - Set all derivatives for an entity type.
File
- src/
Plugin/ Derivative/ ViewsFieldTemplate.php, line 272
Class
- ViewsFieldTemplate
- Derivative class to find all field and properties for calendar View Builders.
Namespace
Drupal\calendar\Plugin\DerivativeCode
private function getTableBaseField(array $table_data) {
if (!empty($table_data['table']['base']['field'])) {
return $table_data['table']['base']['field'];
}
return NULL;
}