$query = \Drupal::entityQuery('user');
$time = time();
$yesterday = $time - 60*60*24;
$new_user_count = $query->condition('created', $yesterday, '>=')
->count()
->execute();
Drupal8 count()
Search form
Amazon Deals
Stay Connected
Most Read
Tags
Popular content
Recent content
ThirstySix helps support and grow the Drupal community with the Drupal Association.
Recent comments
$host =…