You are here

public function TwitterWidget::getCacheMaxAge in Twitter Profile Widget 8

The maximum age for which this object may be cached.

Return value

int The maximum time in seconds that this object may be cached.

Overrides EntityBase::getCacheMaxAge

File

src/Entity/TwitterWidget.php, line 395

Class

TwitterWidget
Defines the Twitter widget entity.

Namespace

Drupal\twitter_profile_widget\Entity

Code

public function getCacheMaxAge() {
  return \Drupal::config('twitter_profile_widget.settings')
    ->get('twitter_widget_cache_time');
}