Problem/Motivation

This is a followup issue for #1535868: Convert all blocks into plugins and #1871772: Convert custom blocks to content entities.

  • Currently, custom blocks can only be created or updated through the Block Library. There is no separate interface for updating their definitions.
  • It is not currently possible to delete a custom block definition through the UI once one is created. (Only instances of the block can be deleted.)
  • It is possible to configure multiple instances of the same custom block.
  • Changing the block body or description is currently done on the block instance editing form, despite that changing these fields changes them for all instances of the custom block. This introduces a usability bug.

custom block edit form

Proposed resolution

  • Provide a separate interface for editing custom blocks, perhaps an entity form once custom blocks are entities.
  • Disable or remove the block body and description fields on the custom block plugin edit form.
  • Help the user discover how to update the block definition when editing a configured instance, or vice versa.
  • Refine the workflow based on the final blocks and layouts UI.

Remaining tasks

Related issues

CommentFileSizeAuthor
#5 edit_block.png208.43 KBYesCT
#5 configure_block.png218.93 KBYesCT
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xjm’s picture

Issue summary: View changes

Updated issue summary.

xjm’s picture

Issue summary: View changes

Updated issue summary.

xjm’s picture

Status: Postponed » Active
tim.plunkett’s picture

Status: Active » Postponed

#1871772: Convert custom blocks to content entities will likely solve 90% of this, postponing for now.

xjm’s picture

Issue tags: +Block plugins
jibran’s picture

Status: Postponed » Active
YesCT’s picture

FileSize
218.93 KB
208.43 KB

i think things have changed.
right now for a custom block I added, when I edit the block (via the pencil -> edit when viewing the block on the site) I get:

edit_block.png

when configuring the block (either via the block admin list, or the pencil -> configure) I get:

configure_block.png

I came to this issue because I was looking for existing issues related to confusions I had in #13 and #14 in #1948884-13: Create configuration schemas for block and custom_block modules
I thought it was strange that I could not set the title when I edited the block.

xjm’s picture

Status: Active » Closed (duplicate)

Yeah, the original problem was fixed by the custom block conversion issue, so let's open specific issues for any remaining/confusing WTFs.

xjm’s picture

Issue summary: View changes

Updated issue summary.