withType(EmailActivation::TYPE_NEW_EMAIL_CONFIRMATION); } public function behaviors(): array { return ArrayHelper::merge(parent::behaviors(), [ 'expirationBehavior' => [ 'repeatTimeout' => 5 * 60, ], 'dataBehavior' => [ 'class' => NewEmailConfirmationBehavior::class, ], ]); } public function init(): void { parent::init(); $this->type = EmailActivation::TYPE_NEW_EMAIL_CONFIRMATION; } }