public function EntityLabelEmptyFieldHandler::summaryText in Empty fields 7.2
Implementation of EmptyFieldText:summaryText().
Return value
string Text for the field formatter settings summary.
Overrides EmptyFieldHandler::summaryText
File
- plugins/
empty_fields_handler_label.inc, line 72 - Contains the EntityLabelEmptyFieldHandler plugin for Empty Fields module.
Class
- EntityLabelEmptyFieldHandler
- Defines EntityLabelEmptyFieldHandler.
Code
public function summaryText() {
switch ($this->options['display']) {
case 'link':
return t('Uses entity link if empty');
case 'text':
default:
return t('Uses entity label if empty');
}
}