255], ]; } /** * @inheritdoc */ public function behaviors() { return [ TimestampBehavior::className(), 'slug' => [ 'class' => 'common\behaviors\Slug', 'in_attribute' => 'name', 'out_attribute' => 'alias', 'translit' => true ], [ 'class' => 'common\behaviors\ShowImage', ], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'service_id' => Yii::t('app', 'Service ID'), 'name' => Yii::t('app', 'Name'), 'alias' => Yii::t('app', 'Alias'), 'body' => Yii::t('app', 'Body'), 'image' => Yii::t('app', 'Image'), 'meta_title' => Yii::t('app', 'Meta Title'), 'description' => Yii::t('app', 'Description'), 'h1' => Yii::t('app', 'H1'), 'seo_text' => Yii::t('app', 'Seo Text'), 'created_at' => Yii::t('app', 'Created At'), 'updated_at' => Yii::t('app', 'Updated At'), ]; } }