public function ConfigEntityRevisionsControllerBase::__construct in Config Entity Revisions 8.2
Same name and namespace in other branches
- 8 src/ConfigEntityRevisionsControllerBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsControllerBase::__construct()
- 1.x src/ConfigEntityRevisionsControllerBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsControllerBase::__construct()
Constructs a ConfigEntityRevisionsController object.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container interface object.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Drupal\Core\Config\ImmutableConfig $config: The configuration service.
\Drupal\diff\DiffEntityComparison $entity_comparison: The diff entity comparison service.
\Drupal\Core\Entity\EntityTypeManager $entity_type_manager: The entity type manager.
\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.
\Symfony\Component\Serializer\Serializer $serialiser: The serialiser service.
\Drupal\Core\Database\Connection $connection: The database connection.
Overrides ConfigEntityRevisionsControllerInterface::__construct
File
- src/
ConfigEntityRevisionsControllerBase.php, line 93
Class
- ConfigEntityRevisionsControllerBase
- Controller to make library functions available to various consumers.
Namespace
Drupal\config_entity_revisionsCode
public function __construct(ContainerInterface $container, DateFormatterInterface $date_formatter, RendererInterface $renderer, ImmutableConfig $config, DiffEntityComparison $entity_comparison, EntityTypeManager $entity_type_manager, AccountProxyInterface $current_user, Serializer $serialiser, Connection $connection) {
$this->container = $container;
$this->dateFormatter = $date_formatter;
$this->renderer = $renderer;
$this->config = $this
->config('diff.settings');
$this->entityComparison = $entity_comparison;
$this->entityTypeManager = $entity_type_manager;
$this->currentUser = $current_user;
$this->serialiser = $serialiser;
$this->connection = $connection;
}