public function ReadingTime::setWordsPerMinute in Node read time 8
Sets words per minute.
Parameters
int $wordsPerMinute: Set the number of words per minute.
Return value
\Drupal\node_read_time\Calculate\ReadingTime Returns this class object.
File
- src/
Calculate/ ReadingTime.php, line 91
Class
- ReadingTime
- Calculates the reading time of a node.
Namespace
Drupal\node_read_time\CalculateCode
public function setWordsPerMinute($wordsPerMinute) {
$this->wordsPerMinute = $wordsPerMinute;
return $this;
}