public function GathercontentMapping::getFormatterUpdatedDrupal in GatherContent 8
Return value
string
File
- src/
Entity/ GathercontentMapping.php, line 171
Class
- GathercontentMapping
- Defines the GatherContent Mapping entity.
Namespace
Drupal\gathercontent\EntityCode
public function getFormatterUpdatedDrupal() {
$updated_drupal = $this
->get('updated_drupal');
if (!empty($updated_drupal)) {
return \Drupal::service('date.formatter')
->format($updated_drupal, 'custom', 'M d, Y - H:i');
}
else {
return t('Never');
}
}