private function needsWarmUp(GroupexFormCacheInterface $entity) {
    if (!$created = $entity->field_gfc_created->value) {
      return TRUE;
    }

    $config = $this->configFactory->get('groupex_form_cache.settings');
    if ((REQUEST_TIME - $created) > $config->get('cache_warmup_interval')) {
      return TRUE;
    }

    return FALSE;
  }
private function needsWarmUp(GroupexFormCacheInterface $entity) {
    if (!$created = $entity->field_gfc_created->value) {
      return TRUE;
    }

    $config = $this->configFactory->get('groupex_form_cache.settings');
    if ((REQUEST_TIME - $created) > $config->get('cache_warmup_interval')) {
      return TRUE;
    }

    return FALSE;
  }
private function needsWarmUp ( GroupexFormCacheInterface $ entity ) { if ( ! $ created = $ entity -> field_gfc_created -> value ) { return TRUE ; } $ config = $ this -> configFactory -> get ( 'groupex_form_cache.settings' ) ; if ( ( REQUEST_TIME - $ created ) > $ config -> get ( 'cache_warmup_interval' ) ) { return TRUE ; } return FALSE ; }
Check if entity needs warming up.

@param \Drupal\groupex_form_cache\GroupexFormCacheInterface $entity
Entity.

@return bool
TRUE if needs warming up.
Check if entity needs warming up .