public static function MassContactMessage::getDefaultSentTime in Mass Contact 8
The default value callback for 'sent' base field definition.
Return value
array An array of default values.
See also
::baseFieldDefinitions()
File
- src/
Entity/ MassContactMessage.php, line 202
Class
- MassContactMessage
- The mass contact message entity for archiving messages.
Namespace
Drupal\mass_contact\EntityCode
public static function getDefaultSentTime() {
return [
\Drupal::requestStack()
->getCurrentRequest()->server
->get('REQUEST_TIME'),
];
}