You are here

public function MetatagDisplayExtender::setFirstRowTokens in Metatag 8

Store first row tokens on the class.

metatag_views_metatag_route_entity() loads the View fresh, to avoid rebuilding and re-rendering it, preserve the first row tokens.

File

metatag_views/src/Plugin/views/display_extender/MetatagDisplayExtender.php, line 265

Class

MetatagDisplayExtender
Metatag display extender plugin.

Namespace

Drupal\metatag_views\Plugin\views\display_extender

Code

public function setFirstRowTokens(array $first_row_tokens) {
  self::$firstRowTokens = $first_row_tokens;
}