You are here

public function WarmerPluginBase::getFrequency in Warmer 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/WarmerPluginBase.php \Drupal\warmer\Plugin\WarmerPluginBase::getFrequency()

Returns the frequency for the warming operation.

Return value

int The frequency in seconds.

Overrides WarmerInterface::getFrequency

2 calls to WarmerPluginBase::getFrequency()
WarmerPluginBase::buildConfigurationForm in src/Plugin/WarmerPluginBase.php
Form constructor.
WarmerPluginBase::isActive in src/Plugin/WarmerPluginBase.php
Checks if the plugin should warm in this particular moment.

File

src/Plugin/WarmerPluginBase.php, line 174

Class

WarmerPluginBase
Base class for warmer plugins that implement settings forms.

Namespace

Drupal\warmer\Plugin

Code

public function getFrequency() {
  $configuration = $this
    ->getConfiguration();
  return $configuration['frequency'];
}