Important: #111343 - Provide more context in IsReferenceConsideredForDependencyEvent 

See forge#111343

Description 

When publishing or changing states in workspaces, dependencies of the selected records are resolved and auto-published together with the record. The IsReferenceConsideredForDependencyEvent is used by TYPO3 Core to define which related records are considered a dependency. That same event can also be used to alter TYPO3's default behavior.

In order to determine the proper dependency status of a relation, certain context information was missing from the event. This data has now been added as additional getters to the event:

  • getFlexPointer() allows event listeners to gain more information about references from flexform fields
  • getSoftReferenceKey() and getSoftReferenceId() give more context to soft references (e. g. links in RTEs)
  • getDirection() lets event listeners differentiate between parents and children resolving by the DependencyResolver