Issue #3077734: Plugin blocks cannot set their own attributes when put in the layout
1 open thread
Merge request reports
Activity
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
mentioned in commit issue/rocketship_core-3314690@66c3bd23
Please register or sign in to reply