mirror of
https://gitlab.unicamp.br/infimecc_drupal11_modules/structural_pages.git
synced 2026-05-04 08:00:42 -03:00
Fix ParentEntityHandler attribute to call parent constructor
The Plugin base class requires the parent constructor to be called with the id and deriver parameters. This fixes a TypeError in HookCollectorPass during container compilation. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -61,6 +61,8 @@ class ParentEntityHandler extends Plugin {
|
|||||||
public readonly array $bundle_restrictions = [],
|
public readonly array $bundle_restrictions = [],
|
||||||
public readonly int $weight = 0,
|
public readonly int $weight = 0,
|
||||||
public readonly ?string $deriver = NULL,
|
public readonly ?string $deriver = NULL,
|
||||||
) {}
|
) {
|
||||||
|
parent::__construct($id, $deriver);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user