Skip to content
Snippets Groups Projects

Issue #3348323: Entity Reference Purger is not workflow aware

1 unresolved thread

Merge request reports

Members who can merge are allowed to add commits.
Ready to merge by members who can write to the target branch.
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
86 $entity->save();
87 }
88 }
89
90 /**
91 * Remove all the reference item from the field.
92 *
93 * @param \Drupal\Core\Entity\ContentEntityInterface $entity
94 * The entity interface that contains the term reference.
95 * @param string $field_name
96 * The reference entity field name.
97 * @param \Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem $field_item
98 * The entity reference item.
99 */
100 protected function removeItemRevisions(ContentEntityInterface $entity, string $field_name, EntityReferenceItem $field_item): void {
101 $terms = $entity->get($field_name)->getValue();
Please register or sign in to reply
Loading