Commit 0347ce5b authored by Eugene Bocharov's avatar Eugene Bocharov Committed by Damien McKenna
Browse files

Issue #3255547 by Eugene Bocharov, Thomas Kaisuka, Stephen Ollman, glynster,...

Issue #3255547 by Eugene Bocharov, Thomas Kaisuka, Stephen Ollman, glynster, oxy86, Matthijs, Mahmoud Barhouma, DamienMcKenna, wells: View preview broken after Metatag upgrade.
parent 0af6f6c0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2,6 +2,9 @@ Metatag 8.x-1.x-dev, 2022-xx-xx
-------------------------------
#3104170 by DamienMcKenna, tobiasb, marcoliver, hosterholz, Berdir: Do not send
  empty Metatag descriptions through translation.
#3255547 by Eugene Bocharov, Thomas Kaisuka, Stephen Ollman, glynster, oxy86,
  Matthijs, Mahmoud Barhouma, DamienMcKenna, wells: View preview broken after
  Metatag upgrade.


Metatag 8.x-1.18, 2021-12-21
+5 −2
Original line number Diff line number Diff line
@@ -37,14 +37,17 @@ class MetatagViewsCachePluginManager implements PluginManagerInterface, CachedDi
   * {@inheritdoc}
   */
  public function createInstance($plugin_id, array $configuration = []) {
    return $this->wrap($this->viewsPluginManager->createInstance($plugin_id, $configuration));
    $plugin = $this->viewsPluginManager->createInstance($plugin_id, $configuration);
    return $plugin_id === 'none' ? $plugin : $this->wrap($plugin);
  }

  /**
   * {@inheritdoc}
   */
  public function getInstance(array $options) {
    return $this->wrap($this->viewsPluginManager->getInstance($options));
    /** @var \Drupal\views\Plugin\views\cache\CachePluginBase $plugin */
    $plugin = $this->viewsPluginManager->getInstance($options);
    return $plugin->getPluginId() === 'none' ? $plugin : $this->wrap($plugin);
  }

  /**