ModalTrait.php Table of Contents Traits ModalTraitRequires in the host class: `$this->modalRegistry`, `$this->eventDispatcher`, `$this->translator`, `$this->translatorDomain`, `getModalTarget()`.