Verified Commit 87c1c03d authored by Andrei Mateescu's avatar Andrei Mateescu
Browse files

fix: #3592878 ContextualLinksHelper::addLinks() assertion rejects the...

fix: #3592878 ContextualLinksHelper::addLinks() assertion rejects the 'exposed_filter' location, fataling ViewsExposedFilterBlock

By: ltrain
By: quietone
By: phenaproxima
By: amateescu
parent b3b68aed
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ public function __construct(
   * @see \Drupal\views\Hook\ViewsThemeHooks::preprocessViewsView()
   */
  public function addLinks(array &$renderElement, string $location, string $displayId, ?array $viewElement = NULL): void {
    assert(in_array($location, ['block', 'page', 'view'], TRUE));
    assert(in_array($location, ['block', 'page', 'view', 'exposed_filter'], TRUE));

    if (!isset($viewElement)) {
      $viewElement = $renderElement;