protected function ViewsFieldTemplate::isDateField in Calendar 8
Determine if a field is an date field.
Parameters
array $field_info: Field array form ViewsData.
Return value
bool Returns a boolean value.
1 call to ViewsFieldTemplate::isDateField()
- ViewsFieldTemplate::getDerivativeDefinitions in src/
Plugin/ Derivative/ ViewsFieldTemplate.php - Gets the definition of all derivatives of a base plugin.
File
- src/
Plugin/ Derivative/ ViewsFieldTemplate.php, line 209
Class
- ViewsFieldTemplate
- Derivative class to find all field and properties for calendar View Builders.
Namespace
Drupal\calendar\Plugin\DerivativeCode
protected function isDateField(array $field_info) {
if (!empty($field_info['field']['id']) && $field_info['field']['id'] == 'field') {
if (!empty($field_info['argument']['id']) && $field_info['argument']['id'] == 'date') {
return TRUE;
}
}
return FALSE;
}