Skip to content

Commit 5f814e9

Browse files
committed
Replace deprecated 'link' method.
Fixes drush-ops/drush#4595
1 parent 49f4ce1 commit 5f814e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/d8/module/content-entity/src/ExampleListBuilder.php.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class {{ class_prefix }}ListBuilder extends EntityListBuilder {
102102
*/
103103
public function buildRow(EntityInterface $entity) {
104104
/* @var $entity \Drupal\{{ machine_name }}\{{ class_prefix }}Interface */
105-
$row['id'] = $entity->{{ title_base_field ? 'id' : 'link' }}();
105+
$row['id'] = $entity->{{ title_base_field ? 'id' : 'toLink' }}();
106106
{% if title_base_field %}
107107
$row['title'] = $entity->toLink();
108108
{% endif %}

0 commit comments

Comments
 (0)