Skip to content
Twig Field Finder
Theme

Published status

Open in builder

This is a property of the entity itself, so there’s no field name to fill in.

Reads the entity directly, before field formatters run.

  1. Snippet 1
    {{ node.isPublished() ? 'Published' : 'Unpublished' }}
  2. Snippet 2
    {{ node.status.value }}

Gotcha

Users have no published state: use user.isActive() and user.isBlocked() instead.