Loading core/modules/editor/src/Plugin/Filter/EditorFileReference.php +1 −5 Original line number Diff line number Diff line Loading @@ -53,12 +53,8 @@ class EditorFileReference extends FilterBase implements ContainerFactoryPluginIn * @param \Drupal\Core\Image\ImageFactory $image_factory * The image factory. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityRepositoryInterface $entity_repository, ImageFactory $image_factory = NULL) { public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityRepositoryInterface $entity_repository, ImageFactory $image_factory) { $this->entityRepository = $entity_repository; if ($image_factory === NULL) { @trigger_error('Calling ' . __METHOD__ . '() without the $image_factory argument is deprecated in drupal:9.1.0 and is required in drupal:10.0.0. See https://www.drupal.org/node/3173719', E_USER_DEPRECATED); $image_factory = \Drupal::service('image.factory'); } $this->imageFactory = $image_factory; parent::__construct($configuration, $plugin_id, $plugin_definition); } Loading Loading
core/modules/editor/src/Plugin/Filter/EditorFileReference.php +1 −5 Original line number Diff line number Diff line Loading @@ -53,12 +53,8 @@ class EditorFileReference extends FilterBase implements ContainerFactoryPluginIn * @param \Drupal\Core\Image\ImageFactory $image_factory * The image factory. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityRepositoryInterface $entity_repository, ImageFactory $image_factory = NULL) { public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityRepositoryInterface $entity_repository, ImageFactory $image_factory) { $this->entityRepository = $entity_repository; if ($image_factory === NULL) { @trigger_error('Calling ' . __METHOD__ . '() without the $image_factory argument is deprecated in drupal:9.1.0 and is required in drupal:10.0.0. See https://www.drupal.org/node/3173719', E_USER_DEPRECATED); $image_factory = \Drupal::service('image.factory'); } $this->imageFactory = $image_factory; parent::__construct($configuration, $plugin_id, $plugin_definition); } Loading