Skip to content
Snippets Groups Projects
Commit 26b435dd authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #3511999: Introduce class WorkflowTargetEntity

parent 6834cf9c
No related branches found
No related tags found
No related merge requests found
Pipeline #446092 passed with warnings
......@@ -68,7 +68,8 @@ class WorkflowEntityHooks {
#[Hook('entity_presave')]
public function entityPresave(EntityInterface $entity) {
if ($entity->getEntityTypeId() == 'entity_form_display') {
if ($entity->targetEntityType == 'workflow_transition') {
/** @var \Drupal\Core\Entity\Entity\EntityFormDisplay $entity */
if ($entity->getTargetEntityTypeId() == 'workflow_transition') {
if (isset($entity->hidden['to_sid'])) {
WorkflowTransitionForm::addPreSaveBasefieldWarning();
$hidden = $entity->hidden;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment