Skip to content
Snippets Groups Projects
Unverified Commit c9888317 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3488583 by grimreaper: Media library links: remove #markup

parent 0c9b4fcd
No related branches found
No related tags found
4 merge requests!11197Issue #3506427 by eduardo morales alberti: Remove responsive_image.ajax from hook,!11131[10.4.x-only-DO-NOT-MERGE]: Issue ##2842525 Ajax attached to Views exposed filter form does not trigger callbacks,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!617Issue #3043725: Provide a Entity Handler for user cancelation
Pipeline #393534 passed with warnings
Pipeline: drupal

#393536

    ......@@ -248,13 +248,9 @@ protected function buildMediaTypeMenu(MediaLibraryState $state) {
    $link_state->set('media_library_content', 1);
    $title = $allowed_type->label();
    $display_title = [
    '#markup' => $this->t('<span class="visually-hidden">Show </span>@title<span class="visually-hidden"> media</span>', ['@title' => $title]),
    ];
    $display_title = $this->t('<span class="visually-hidden">Show </span>@title<span class="visually-hidden"> media</span>', ['@title' => $title]);
    if ($allowed_type_id === $selected_type_id) {
    $display_title = [
    '#markup' => $this->t('<span class="visually-hidden">Show </span>@title<span class="visually-hidden"> media</span><span class="active-tab visually-hidden"> (selected)</span>', ['@title' => $title]),
    ];
    $display_title = $this->t('<span class="visually-hidden">Show </span>@title<span class="visually-hidden"> media</span><span class="active-tab visually-hidden"> (selected)</span>', ['@title' => $title]);
    }
    $menu['#links']['media-library-menu-' . $allowed_type_id] = [
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment