You are here

public function ReadingTime::setWords in Node read time 8

Sets the number of words.

Parameters

int $words: The number of collected words.

File

src/Calculate/ReadingTime.php, line 77

Class

ReadingTime
Calculates the reading time of a node.

Namespace

Drupal\node_read_time\Calculate

Code

public function setWords($words) {
  $this->words = $words;
}