Skip to content
Snippets Groups Projects

Issue-3479899-adjust-to-proper: Added proper dependency injection wherever...

Merged Divyansh Gupta requested to merge issue/lms-3479899:3479899-adjust-to-proper into 1.0.x
Compare and
10 files
+ 57
45
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -13,16 +13,6 @@ use Drupal\Core\StringTranslation\TranslatableMarkup;
#[\Attribute(\Attribute::TARGET_CLASS)]
class ActivityAnswer extends Plugin {
/**
* Constructs a ActivityAnswer attribute.
*
* @param string $id
* The plugin ID.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $name
* The human-readable name of the activity answer plugin.
* @param class-string|null $deriver
* (optional) The deriver class.
*/
public function __construct(
public readonly string $id,
public readonly ?TranslatableMarkup $name,
Loading