Skip to content
Snippets Groups Projects
Commit b35bdef9 authored by baldwinlouie's avatar baldwinlouie
Browse files

git commit -m 'Issue #2995676 by baldwinlouie: Support Drupal 8.6'...

git commit -m 'Issue #2995676 by baldwinlouie: Support Drupal 8.6' --author="baldwinlouie <baldwinlouie@129875.no-reply.drupal.org>"
parent 14c48f4f
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ namespace Drupal\aws_cloud\Form\Ec2;
use Drupal\aws_cloud\Service\AwsEc2ServiceInterface;
use Drupal\cloud\Form\CloudContentForm;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\EntityRepositoryInterface;
use Drupal\Core\Entity\Query\QueryFactory;
use Drupal\Core\Messenger\Messenger;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -29,9 +30,11 @@ class AwsCloudContentForm extends CloudContentForm {
* @param \Drupal\Core\Entity\EntityManagerInterface $manager
* @param \Drupal\aws_cloud\Service\AwsEc2ServiceInterface $aws_ec2_service
* @param \Drupal\Core\Messenger\Messenger $messenger
* @param \Drupal\Core\Entity\EntityRepositoryInterface $entity_repository
* The entity repository service.
*/
public function __construct(QueryFactory $query_factory, EntityManagerInterface $manager, AwsEc2ServiceInterface $aws_ec2_service, Messenger $messenger) {
parent::__construct($query_factory, $manager);
public function __construct(QueryFactory $query_factory, EntityManagerInterface $manager, AwsEc2ServiceInterface $aws_ec2_service, Messenger $messenger, EntityRepositoryInterface $entity_repository) {
parent::__construct($query_factory, $manager, $entity_repository);
$this->awsEc2Service = $aws_ec2_service;
$this->messenger = $messenger;
}
......@@ -44,7 +47,8 @@ class AwsCloudContentForm extends CloudContentForm {
$container->get('entity.query'),
$container->get('entity.manager'),
$container->get('aws_cloud.ec2'),
$container->get('messenger')
$container->get('messenger'),
$container->get('entity.repository')
);
}
......
......@@ -8,6 +8,7 @@ use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\Query\QueryFactory;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Messenger\Messenger;
use Drupal\Core\Entity\EntityRepositoryInterface;
/**
* Class AwsDeleteForm - Base Delete class. This class injects the
......@@ -35,9 +36,11 @@ class AwsDeleteForm extends CloudContentDeleteForm {
* @param \Drupal\Core\Entity\EntityManagerInterface $manager
* @param \Drupal\aws_cloud\Form\Ec2\AwsEc2ServiceInterface $aws_ec2_service
* @param \Drupal\Core\Messenger\Messenger $messenger
* @param \Drupal\Core\Entity\EntityRepositoryInterface $entity_repository
* The entity repository service.
*/
public function __construct(QueryFactory $query_factory, EntityManagerInterface $manager, AwsEc2ServiceInterface $aws_ec2_service, Messenger $messenger) {
parent::__construct($query_factory, $manager);
public function __construct(QueryFactory $query_factory, EntityManagerInterface $manager, AwsEc2ServiceInterface $aws_ec2_service, Messenger $messenger, EntityRepositoryInterface $entity_repository) {
parent::__construct($query_factory, $manager, $entity_repository);
$this->awsEc2Service = $aws_ec2_service;
$this->messenger = $messenger;
}
......@@ -50,7 +53,8 @@ class AwsDeleteForm extends CloudContentDeleteForm {
$container->get('entity.query'),
$container->get('entity.manager'),
$container->get('aws_cloud.ec2'),
$container->get('messenger')
$container->get('messenger'),
$container->get('entity.repository')
);
}
......
......@@ -6,9 +6,10 @@
namespace Drupal\cloud\Form;
use Drupal\Core\Entity\ContentEntityConfirmFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\EntityRepositoryInterface;
use Drupal\Core\Entity\Query\QueryFactory;
use Drupal\Core\Form\FormStateInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
......@@ -31,9 +32,10 @@ class CloudContentDeleteForm extends ContentEntityConfirmFormBase {
/**
* {@inheritdoc}
*/
public function __construct(QueryFactory $query_factory, EntityManagerInterface $manager) {
public function __construct(QueryFactory $query_factory, EntityManagerInterface $manager, EntityRepositoryInterface $entity_repository) {
$this->query_factory = $query_factory;
$this->manager = $manager;
$this->entityRepository = $entity_repository;
}
/**
......@@ -42,7 +44,8 @@ class CloudContentDeleteForm extends ContentEntityConfirmFormBase {
public static function create(ContainerInterface $container) {
return new static(
$container->get('entity.query'),
$container->get('entity.manager')
$container->get('entity.manager'),
$container->get('entity.repository')
);
}
......
......@@ -13,6 +13,7 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\Query\QueryFactory;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Entity\EntityRepositoryInterface;
/**
* Form controller for the Cloud entity edit forms.
......@@ -34,9 +35,10 @@ class CloudContentForm extends ContentEntityForm {
/**
* {@inheritdoc}
*/
public function __construct(QueryFactory $query_factory, EntityManagerInterface $manager) {
public function __construct(QueryFactory $query_factory, EntityManagerInterface $manager, EntityRepositoryInterface $entity_repository) {
$this->query_factory = $query_factory;
$this->manager = $manager;
$this->entityRepository = $entity_repository;
}
/**
......@@ -45,7 +47,8 @@ class CloudContentForm extends ContentEntityForm {
public static function create(ContainerInterface $container) {
return new static(
$container->get('entity.query'),
$container->get('entity.manager')
$container->get('entity.manager'),
$container->get('entity.repository')
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment