In practice, this means that node--BUNDLENAME
resources (Node
entities), block_content--BUNDLENAME
resources (BlockContent
entities) and media--BUNDLENAME
resources (Media
entities) will automatically have new revisions created when they're PATCH
ed, at least if the corresponding bundle (BUNDLENAME
) has the "Create new revision" checkbox checked.
Technically speaking: this happens for entity types that have bundles, those bundles implement \Drupal\Core\Entity\RevisionableEntityBundleInterface
and return TRUE
for \Drupal\Core\Entity\RevisionableEntityBundleInterface::shouldCreateNewRevision()
. So this isn't restricted to the three aforementioned entity types: any entity type that uses this infrastructure gets this automatically.