You are here

public static function MetatagDisplayExtender::setFirstRowTokensOnStylePlugin in Metatag 8

Set the first row tokens on the style plugin.

Parameters

\Drupal\views\ViewExecutable $view: The view.

array $first_row_tokens: The first row tokens.

1 call to MetatagDisplayExtender::setFirstRowTokensOnStylePlugin()
MetatagDisplayExtender::getMetatags in metatag_views/src/Plugin/views/display_extender/MetatagDisplayExtender.php
Get the Metatag configuration for this display.

File

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

Class

MetatagDisplayExtender
Metatag display extender plugin.

Namespace

Drupal\metatag_views\Plugin\views\display_extender

Code

public static function setFirstRowTokensOnStylePlugin(ViewExecutable $view, array $first_row_tokens) {
  $style = $view
    ->getStyle();
  self::getFirstRowTokensReflection($style)
    ->setValue($style, [
    $first_row_tokens,
  ]);
}