3379174: use entity type bundle info to handle bundle type handlers of both ...
Compare changes
@@ -2,6 +2,7 @@
@@ -2,6 +2,7 @@
@@ -9,6 +10,7 @@ use Drupal\Core\StringTranslation\TranslationInterface;
@@ -9,6 +10,7 @@ use Drupal\Core\StringTranslation\TranslationInterface;
@@ -20,6 +22,8 @@ class OperationProvider implements OperationProviderInterface {
@@ -20,6 +22,8 @@ class OperationProvider implements OperationProviderInterface {
@@ -40,13 +44,18 @@ class OperationProvider implements OperationProviderInterface {
@@ -40,13 +44,18 @@ class OperationProvider implements OperationProviderInterface {
public function __construct(ModuleHandlerInterface $module_handler, AccountProxyInterface $current_user, EntityTypeManagerInterface $entity_type_manager, GroupRelationTypeManagerInterface $groupRelationTypeManager, TranslationInterface $string_translation) {
public function __construct(ModuleHandlerInterface $module_handler, AccountProxyInterface $current_user, EntityTypeManagerInterface $entity_type_manager, GroupRelationTypeManagerInterface $groupRelationTypeManager, TranslationInterface $string_translation, ?EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL) {
@@ -104,18 +113,20 @@ class OperationProvider implements OperationProviderInterface {
@@ -104,18 +113,20 @@ class OperationProvider implements OperationProviderInterface {