Problem/Motivation

For a project we'd like to schedule when specific blocks are visible. This does not seem to be possible right now.

Proposed resolution

Allow Block (display) entities to be scheduleable.

Remaining tasks

Work out how to do this.
Do this.

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Comments

DamienMcKenna created an issue. See original summary.

jonathan1055’s picture

Hi DamienMcKenna,
Do block entities have a published status boolean field? If so, then we should be able to use (and maybe adapt/update) the Scheduler entity plugin system to provide the functionality. We've done it for Nodes, Media, Commerce Products and Taxonomy Terms. Other 3rd-party entity types have also been made to work with Scheduler.

Before we go too far here, the following issues might help to get done first:
#3282068: Add support for entities without changed date
#3282071: Add support for entities without label_collection key
#3282982: Simplify the scheduler plugin implementations

PCate’s picture

Do block entities have a published status boolean field?

Block content entitles do have a boolean status field, but they don't expose it as a form element on the entity form. There is work towards this however: https://www.drupal.org/project/drupal/issues/2834546

jonathan1055’s picture

jonathan1055’s picture

Linking to #3355087: Support for non-bundle entities ? but no work has started yet.