public function sendContent() { if ($this->stream === null) { $this->content = Yii::$app->getI18n()->removeLegacyLangTags($this->content); } parent::sendContent(); }