-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Describe the bug
drush generate module-content-entity is putting $entity->link() into listBuilder class - public function buildRow(EntityInterface $entity) {}
To Reproduce
Generated custom entity.
Expected behavior
Not to use method which has been removed in Drupal 9.
Actual behavior
It used removed method, list of entities is having error for undefined method.
Workaround
Replace it as suggested in documentation: https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Entity.php/function/Entity%3A%3Alink/8.6.x
System Configuration
| Q | A |
|---|---|
| Drush version? | 10.3.6 |
| Drupal version? | 9.0 |
| PHP version | 7.4 |
| OS? | Linux |
Metadata
Metadata
Assignees
Labels
No labels