You are here

public function Poll::getRuntime in Poll 8

Returns the runtime of the feed in seconds.

Return value

int The refresh rate of the feed in seconds.

Overrides PollInterface::getRuntime

File

src/Entity/Poll.php, line 80

Class

Poll
Defines the poll entity class.

Namespace

Drupal\poll\Entity

Code

public function getRuntime() {
  return $this
    ->get('runtime')->value;
}