You are here

public static function MetatagDisplayExtender::getFirstRowTokensFromStylePlugin in Metatag 8

Get the first row tokens from the style plugin.

Parameters

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

Return value

array The first row tokens.

2 calls to MetatagDisplayExtender::getFirstRowTokensFromStylePlugin()
MetatagViewsCacheWrapper::doDeferredCacheSet in metatag_views/src/MetatagViewsCacheWrapper.php
Actually run cacheSet for type results.
metatag_views_views_post_render in metatag_views/metatag_views.module
Implements hook_views_post_render().

File

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

Class

MetatagDisplayExtender
Metatag display extender plugin.

Namespace

Drupal\metatag_views\Plugin\views\display_extender

Code

public static function getFirstRowTokensFromStylePlugin(ViewExecutable $view) {
  $style = $view
    ->getStyle();
  return self::getFirstRowTokensReflection($style)
    ->getValue($style)[0] ?? [];
}