Issue #3443199: Remove deprecated code from content translations + locale
2 unresolved threads
Closes #3443199
Merge request reports
Activity
43 29 * The entity field manager service. 44 * @param \Drupal\Component\Datetime\TimeInterface|null $time 30 * @param \Drupal\Component\Datetime\TimeInterface $time 45 31 * The time service. 46 32 */ 47 public function __construct(ContentTranslationManagerInterface $manager, EntityFieldManagerInterface $entity_field_manager, protected ?TimeInterface $time = NULL) { 48 $this->manager = $manager; 49 $this->entityFieldManager = $entity_field_manager; 50 if ($this->time === NULL) { 51 @trigger_error('Calling ' . __METHOD__ . ' without the $time argument is deprecated in drupal:10.3.0 and it will be required in drupal:11.0.0. See https://www.drupal.org/node/3112298', E_USER_DEPRECATED); 52 $this->time = \Drupal::service('datetime.time'); 53 } 33 public function __construct( 34 protected ContentTranslationManagerInterface $manager, 35 protected EntityFieldManagerInterface $entityFieldManager, 36 protected TimeInterface $time changed this line in version 2 of the diff
51 37 * The state service. 52 * @param \Drupal\Component\Datetime\TimeInterface|null $time 38 * @param \Drupal\Component\Datetime\TimeInterface $time 53 39 * The time service. 54 40 */ 55 public function __construct(ModuleHandlerInterface $module_handler, StateInterface $state, protected ?TimeInterface $time = NULL) { 56 $this->moduleHandler = $module_handler; 57 $this->state = $state; 58 if ($this->time === NULL) { 59 @trigger_error('Calling ' . __METHOD__ . ' without the $time argument is deprecated in drupal:10.3.0 and it will be required in drupal:11.0.0. See https://www.drupal.org/node/3112298', E_USER_DEPRECATED); 60 $this->time = \Drupal::service('datetime.time'); 61 } 41 public function __construct( 42 protected ModuleHandlerInterface $moduleHandler, 43 protected StateInterface $state, 44 protected TimeInterface $time changed this line in version 2 of the diff
Please register or sign in to reply