[Hackday][2.7] Added deprecation trigger

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #12608
| License       | MIT
| Doc PR        |
please use the FQCN (the easy way is to use ``__METHOD__`` and sprintf it into the message)