Resolve #3197416 "Medialibrary fieldwidgetopenercheckaccess denies access on a translated entity revision"
Open
requested to merge issue/drupal-3197416:3197416-medialibrary-fieldwidgetopenercheckaccess-denies-access-on-a-translated-entity-revision into 11.x
2 unresolved threads
Closes #3197416
Merge request reports
Activity
84 92 * The current active user. 85 93 * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler 86 94 * The module handler. 95 * @param \Drupal\Core\Routing\RouteMatchInterface $route_match 96 * The route match. 87 97 */ 88 public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user, ModuleHandlerInterface $module_handler) { 98 public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user, ModuleHandlerInterface $module_handler, RouteMatchInterface $route_match) { 89 99 parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings); 90 100 $this->entityTypeManager = $entity_type_manager; 91 101 $this->currentUser = $current_user; 92 102 $this->moduleHandler = $module_handler; 103 $this->routeMatch = $route_match; changed this line in version 3 of the diff
33 * @var \Drupal\Core\Entity\EntityRepositoryInterface 34 */ 35 protected $entityRepository; 36 29 37 /** 30 38 * MediaLibraryFieldWidgetOpener constructor. 31 39 * 32 40 * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager 33 41 * The entity type manager. 42 * @param \Drupal\Core\Entity\EntityRepositoryInterface $entity_repository 43 * The entity repository. 34 44 */ 35 public function __construct(EntityTypeManagerInterface $entity_type_manager) { 45 public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityRepositoryInterface $entity_repository) { 36 46 $this->entityTypeManager = $entity_type_manager; 47 $this->entityRepository = $entity_repository; changed this line in version 2 of the diff
added 1 commit
- 45bbaa52 - use constructor promotion on MediaLibraryFieldWidgetOpener
added 1 commit
- e024f3af - use constructor promotion on MediaLibraryWidget
Please register or sign in to reply