You are here

public function ModerationInformationInterface::isRevisionableBundleForm in Workbench Moderation 8.2

Same name and namespace in other branches
  1. 8 src/ModerationInformationInterface.php \Drupal\workbench_moderation\ModerationInformationInterface::isRevisionableBundleForm()

Determines if the form is the bundle edit of a revisionable entity.

The logic here is not entirely clear, but seems to work. The form- and entity-dereference chaining seems excessive but is what works.

Parameters

\Drupal\Core\Form\FormInterface $form_object: The form definition object for this form.

Return value

bool True if the form is the bundle edit form for an entity type that supports revisions, false otherwise.

1 method overrides ModerationInformationInterface::isRevisionableBundleForm()
ModerationInformation::isRevisionableBundleForm in src/ModerationInformation.php
Determines if the form is the bundle edit of a revisionable entity.

File

src/ModerationInformationInterface.php, line 131

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\workbench_moderation

Code

public function isRevisionableBundleForm(FormInterface $form_object);