Skip to content
Snippets Groups Projects

Resolve #3197416 "Medialibrary fieldwidgetopenercheckaccess denies access on a translated entity revision"

Open Resolve #3197416 "Medialibrary fieldwidgetopenercheckaccess denies access on a translated entity revision"
2 unresolved threads
2 unresolved threads

Closes #3197416

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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;
  • 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;
  • added 1 commit

    • 45bbaa52 - use constructor promotion on MediaLibraryFieldWidgetOpener

    Compare with previous version

  • added 1 commit

    • e024f3af - use constructor promotion on MediaLibraryWidget

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Please register or sign in to reply
    Loading