Skip to content
Snippets Groups Projects

Add types to form variables.

Merged Seth Hill requested to merge issue/mercury_editor-3487623:3487623-fresh-install-on into 2.1.x
Files
17
@@ -2,6 +2,7 @@
namespace Drupal\mercury_editor\Controller;
use Drupal\Component\Datetime\TimeInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\mercury_editor\MercuryEditorTempstore;
@@ -30,11 +31,22 @@ class MercuryEditorContentTranslationController extends ContentTranslationContro
* A content translation manager instance.
* @param \Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager
* The entity field manager service.
* @param \Drupal\Component\Datetime\TimeInterface $time
* * The time service.
* @param \Drupal\mercury_editor\MercuryEditorTempstore $tempstore
* The Mercury Editor tempstore service.
*/
public function __construct(ContentTranslationManagerInterface $manager, EntityFieldManagerInterface $entity_field_manager, MercuryEditorTempstore $tempstore) {
parent::__construct($manager, $entity_field_manager);
public function __construct(
ContentTranslationManagerInterface $manager,
EntityFieldManagerInterface $entity_field_manager,
TimeInterface $time,
MercuryEditorTempstore $tempstore
) {
parent::__construct(
$manager,
$entity_field_manager,
$time
);
$this->tempstore = $tempstore;
}
@@ -45,6 +57,7 @@ class MercuryEditorContentTranslationController extends ContentTranslationContro
return new static(
$container->get('content_translation.manager'),
$container->get('entity_field.manager'),
$container->get('datetime.time'),
$container->get('mercury_editor.tempstore_repository')
);
}
Loading