- Issue created by @mikkmiggur
- 🇪🇪Estonia hkirsman
I believe the issue is the same as here
https://www.drupal.org/project/search_api/issues/3328702 🐛 Second parameter of request->query->get is not allowed to be an array anymore Closed: duplicate
public function tokens(Request $request) { /** @var MetatagToken $metatag_token */ $metatag_token = \Drupal::service('metatag.token'); $token_values = array(); $tokens = $request->request->get('tokens'); $data = $request->request->get('data'); if (is_null($data)) { $data = array(); }
->
public function tokens(Request $request) { /** @var MetatagToken $metatag_token */ $metatag_token = \Drupal::service('metatag.token'); $token_values = array(); $tokens = $request->request->all()['tokens'] ?? []; $data = $request->request->all()['data']; if (is_null($data)) { $data = array(); }
No more error locally.
- First commit to issue fork.
- @asanchezs opened merge request.
- 🇫🇷France bessonweb
After update to Drupal 10.3.5, the patch seems not work.
- 🇯🇴Jordan ahmad abbad Jordan
After using patch #5 I'm getting this warning:
Warning: Undefined array key "data" in Drupal\yoast_seo\Controller\YoastSeoController->tokens() (line 37