You are here

public function EditorNoteHelperService::__construct in Editor Notes 8

Constructs a new OnboardStationEntityHelper object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager service.

\Drupal\Core\Datetime\DateFormatter $date_formatter: Date format service.

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Session\AccountProxy $current_user: Current user object.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.

File

src/EditorNoteHelperService.php, line 77

Class

EditorNoteHelperService
Class EditorNoteHelperService.

Namespace

Drupal\editor_note

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, DateFormatter $date_formatter, Connection $connection, AccountProxy $current_user, ModuleHandlerInterface $module_handler) {
  $this->entityTypeManager = $entity_type_manager;
  $this->dateFormatter = $date_formatter;
  $this->connection = $connection;
  $this->currentUser = $current_user;
  $this->moduleHandler = $module_handler;
}