public function Poll::setRuntime in Poll 8
Sets the runtime of the feed in seconds.
Parameters
int $runtime: The refresh rate of the feed in seconds.
Return value
\Drupal\poll\PollInterface The class instance that this method is called on.
Overrides PollInterface::setRuntime
File
- src/
Entity/ Poll.php, line 87
Class
- Poll
- Defines the poll entity class.
Namespace
Drupal\poll\EntityCode
public function setRuntime($runtime) {
$this
->set('runtime', $runtime);
return $this;
}