Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/user/src/RoleListBuilder.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
45 * {@inheritdoc} | 45 * {@inheritdoc} |
46 */ | 46 */ |
47 public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) { | 47 public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) { |
48 return new static( | 48 return new static( |
49 $entity_type, | 49 $entity_type, |
50 $container->get('entity.manager')->getStorage($entity_type->id()), | 50 $container->get('entity_type.manager')->getStorage($entity_type->id()), |
51 $container->get('messenger') | 51 $container->get('messenger') |
52 ); | 52 ); |
53 } | 53 } |
54 | 54 |
55 /** | 55 /** |
83 | 83 |
84 if ($entity->hasLinkTemplate('edit-permissions-form')) { | 84 if ($entity->hasLinkTemplate('edit-permissions-form')) { |
85 $operations['permissions'] = [ | 85 $operations['permissions'] = [ |
86 'title' => t('Edit permissions'), | 86 'title' => t('Edit permissions'), |
87 'weight' => 20, | 87 'weight' => 20, |
88 'url' => $entity->urlInfo('edit-permissions-form'), | 88 'url' => $entity->toUrl('edit-permissions-form'), |
89 ]; | 89 ]; |
90 } | 90 } |
91 return $operations; | 91 return $operations; |
92 } | 92 } |
93 | 93 |