public static function beforeEnterProduction($event)
{
/** @var \app\models\Job $job */
$job = $event->sender->owner;
if ($job->company->status == 'company/suspended') {
$message = Yii::t('app', 'Cannot change Status to Production, the company is suspended.');
$event->invalidate($message);
}
}
I would like to output this message somewhere, but I can't seem to find where it goes.
I have the following event:
I would like to output this message somewhere, but I can't seem to find where it goes.