You are here

public function AlinkPostRenderer::setKeywords in Alinks 8

Set keywords and stemmed keywords.

Parameters

mixed $keywords: A list of all of the keywords to set.

File

src/AlinkPostRenderer.php, line 106

Class

AlinkPostRenderer
Class AlinkPostRenderer.

Namespace

Drupal\alinks

Code

public function setKeywords($keywords) {
  $this->keywords = $keywords;
  foreach ($this->keywords as &$keyword) {
    $keyword->stemmed_keyword = $this->stemmer
      ->stem($keyword
      ->getText());
  }
}