Account created on 17 December 2024, 6 months ago
#

Recent comments

There's something wrong with your service definition or how you call it.

My problem was that my services file had the extension .yaml instead of .yml

Missed the absolutely crucial import (that chatGPT got misled on too):

use Drupal\rest\Attribute\RestResource;

and also didn't show use Drupal\Core\StringTranslation\TranslatableMarkup; for some reason.

Production build 0.71.5 2024