[DEPRECATION] Added csrf_provider and intention deprecated error trigger.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #12610
| License       | MIT
| Doc PR        | 
Could you please use the message template:

The XXX was deprecated in version 2.X and will be removed in version 3.0. Please use XXX instead.

Thanks :)