Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291687

Make BlockContent entities publishable

$
0
0

Problem/Motivation

There is currently no way to unpublish BlockContent entities. Now with #2810381: Add generic status field to ContentEntityBase we have an easy way to do this.

Proposed resolution

Add EntityPublishedTrait to BlockContent

Remaining tasks

User interface changes

None here. The patch does not make use of the publishing status, it just adds it. The default is published, so all BlockContent entities will continue to be published just as they are now. Once this is in @timmillwood plans to work on a follow up patch, but that has a lot more complexities around it.

  • How do we unpublish a block? A radio button on the BlockContent entity form? a drop button on the BlockContent entity form?
  • Permissions? Who can unpublish BlockContent? Who can view unpublished BlockContent?
  • Views integration.
  • What happens when you unpublish an already placed block?
  • Can you place unpublished blocks in a region? But they just don't show up until published.

Followup to be opened.

API changes

Data model changes


Viewing all articles
Browse latest Browse all 291687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>