public function EntityHook::__construct in Editor Notes 8
Constructor.
Parameters
\Drupal\editor_note\EditorNoteHelperService $editor_note_helper: Helper service object.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: EntityTypeManager object.
File
- src/
Hook/ EntityHook.php, line 41
Class
- EntityHook
- Be aware of some entity hooks to perform actions on editor note.
Namespace
Drupal\editor_note\HookCode
public function __construct(EditorNoteHelperService $editor_note_helper, EntityTypeManagerInterface $entity_type_manager) {
$this->editorNoteHelper = $editor_note_helper;
$this->entityTypeManager = $entity_type_manager;
}