Problem/Motivation

Status is hardcoded.
In case entities has a "published" property which is not 'status' but 'enabled' for example, plugin will not work.

Steps to reproduce

Try on entity which use a publish key other than status.

Proposed resolution

Get the entity key for "published" instead of hardcoded 'status'.
Use the EntityPublishedTrait to now if entity is published and to set publish state.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

GoZ created an issue. See original summary.

  • goz committed 08a6d088 on 1.0.x
    Issue #3465021: Fix Publication plugin to work with any published field...

  • goz committed 5eacd1df on 1.0.x
    Issue #3465021: Publication plugin only works with entity with 'status'...

  • goz committed 3f3e644e on 1.0.x
    Issue #3465021: Publication plugin only works with entity with 'status'...
goz’s picture

Status: Active » Fixed
Issue tags: +Vienna2025

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.