/** * @inheritdoc */ public function rules() { return [[['ordering'], 'integer'], LanguageFieldFactory::process('name', ['string', 'max' => 255])]; }
/** * @inheritdoc */ public function rules() { return [LanguageFieldFactory::process('body', ['string']), [['created_at'], 'safe'], LanguageFieldFactory::process('title', ['string', 'max' => 255]), LanguageFieldFactory::process('title', ['required'])]; }
/** * @inheritdoc */ public function rules() { return [LanguageFieldFactory::process('long_name', ['required']), [['name', 'is_active', 'category_id', 'ordering'], 'required'], [['is_active', 'version', 'technical_user_only', 'admin_access', 'category_id', 'ordering'], 'integer'], LanguageFieldFactory::process('long_name', ['string', 'max' => 255]), [['name'], 'string', 'max' => 255], [['icon'], 'string', 'max' => 32], [['name'], 'unique']]; }