+ /**
+ * {@inheritdoc}
+ */
+ public static function generateSampleValue(FieldDefinitionInterface $field_definition) {
+ // Pick a random timestamp in the past year.
+ $timestamp = \Drupal::time()->getRequestTime() - mt_rand(0, 86400 * 365);
+ $values['value'] = $timestamp;
+ return $values;
+ }
+