Commit b0ec2215 authored by Yurii Panchuk's avatar Yurii Panchuk Committed by Damien McKenna
Browse files

Issue #3325035 by Panchuk, DamienMcKenna: View page meta tags can be...

Issue #3325035 by Panchuk, DamienMcKenna: View page meta tags can be overridden by view block that placed on same page.
parent f985c4c3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -39,6 +39,8 @@ Metatag 8.x-1.x-dev, 2022-xx-xx
  compatibility.
#3353594 by mukesh88, rckstr_rohan, DamienMcKenna: Spellung misteaks.
#3353826 by DamienMcKenna: Add default settings file.
#3325035 by Panchuk: View page meta tags can be overridden by view block that
  placed on same page.


Metatag 8.x-1.22, 2022-09-29
+3 −3
Original line number Diff line number Diff line
@@ -235,8 +235,8 @@ class MetatagDisplayExtender extends DisplayExtenderPluginBase {
    }

    if ($this->options['tokenize'] && !$raw) {
      if (self::$firstRowTokens) {
        self::setFirstRowTokensOnStylePlugin($view, self::$firstRowTokens);
      if (!empty(self::$firstRowTokens[$view->current_display])) {
        self::setFirstRowTokensOnStylePlugin($view, self::$firstRowTokens[$view->current_display]);
      }
      // This is copied from TokenizeAreaPluginBase::tokenizeValue().
      $style = $view->getStyle();
@@ -266,7 +266,7 @@ class MetatagDisplayExtender extends DisplayExtenderPluginBase {
   * avoid rebuilding and re-rendering it, preserve the first row tokens.
   */
  public function setFirstRowTokens(array $first_row_tokens) {
    self::$firstRowTokens = $first_row_tokens;
    self::$firstRowTokens[$this->view->current_display] = $first_row_tokens;
  }

  /**