Skip to content
Snippets Groups Projects

Issue #3077734: Plugin blocks cannot set their own attributes when put in the layout

Issue #3077734: Plugin blocks cannot set their own attributes when put in the layout

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
141 // them into the top-level element.
142 if (isset($content['#attributes'])) {
143 $build['#attributes'] = $content['#attributes'];
144 unset($content['#attributes']);
145 }
144 146 }
147
148 $build['content'] = $content;
149
145 150 // Hide contextual links for inline blocks until the UX issues surrounding
146 151 // editing them directly are resolved.
147 152 // @see https://www.drupal.org/project/drupal/issues/3075308
148 153 if (!$block instanceof InlineBlock && !empty($content['#contextual_links'])) {
149 154 $build['#contextual_links'] = $content['#contextual_links'];
150 155 }
151 156 $build['content'] = $content;
  • Comment on lines +148 to 156

    $build['content'] = $content; was added below the next conditional in [#3020876], so this addition is redundant. Also, with that issue committed it's not clear if this MR is needed still. If so, this needs test coverage

  • Please register or sign in to reply
  • added 1 commit

    Compare with previous version

  • Please register or sign in to reply
    Loading