Unknown parameter $deriver in Attributes

Created on 19 August 2025, 10 days ago

Problem/Motivation

Unable to create a derivative of a DataProducer using Drupal\graphql\Attribute\DataProducer;

Steps to reproduce

Create new DataProducer with deriver

#[DataProducer(
  ...
  deriver: Whatever::class
)]

Unknown parameter $deriver in call to Drupal\graphql\Attribute\DataProducer constructor

Proposed resolution

__construct in src/Attribute/DataProducer.php should support deriver property.

public readonly ?string $deriver = NULL,

Per /core/lib/Drupal/Component/Plugin/Attribute/Plugin.php

Remaining tasks

All attributes should support deriver?

API changes

Data model changes

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

🇦🇺Australia almunnings Melbourne, 🇦🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024