Returns the default value for entity hostname base field.
string The client host name.
public static function getDefaultHostname() { if (\Drupal::config('comment.settings')->get('log_ip_addresses')) { return \Drupal::request()->getClientIP(); } return ''; }