The Maryland State Board of Education upheld the suspension of a boy who chewed his breakfast pastry into the shape of a gun, saying the punishment was warranted because of the disruption and other previous misconduct.

The decision, which a lawyer for the family said he would appeal to a circuit court, is the latest development in what has been called “the Pop-Tart case,” which gained national attention in 2013 at a time of widespread rethinking of discipline practices in public schools. Other states have since cited the Maryland case in proposing Pop-Tart gun bills that limit student suspensions for imaginary weapons.

The eight-page state opinion, dated Feb. 24, recounts the child’s string of troubles at Park Elementary School in Anne Arundel County, Md.

“The student in this case had a long history of behavioral problems that were the subject of progressive intervention by the school,” the state board concluded. “He created a classroom disruption on March 1, 2013, which resulted in a suspension that was justified based on the incident in question and the student’s history.”

The child at the center of the case was 7 years old and in second grade in 2013, when he nibbled his breakfast pastry into a gun shape and exclaimed, “Look, I made a gun!” He aimed the pastry at other students at their desks and in a nearby hallway.

Robin Ficker, attorney for the child’s parents, said the boy was being playful and did not injure or frighten anyone the day he was suspended. The family has asked that the incident be cleared from the child’s school record, saying that it unfairly tarnishes him with a gun-related offense.

“We’re disappointed but not surprised,” Ficker said. “We’re going to appeal to the court, as we said we would.”

Bob Mosier, spokesman for Anne Arundel schools, described the state decision as “a validation of what we have said all along.”

“It’s been about a student with a long history of disciplinary issues and a school that has gone to every conceivable length to assist that student with those issues,” Mosier said.

School officials have argued that the two-day suspension came as a last resort following repeated problems and that it was not about a gun or a pastry. Ficker has pointed out that the word “gun” is used four times on a discipline referral form and has said that the child meant no harm. A hearing examiner recommended upholding the suspension, and the Anne Arundel Board of Education supported that view.

The state opinion noted that local school boards have the final say in suspension cases unless the local board allegedly failed to follow law, policies or procedures; violated a student’s due process rights; or acted in an unconstitutional manner.

The boy’s parents, through their attorney, have argued that Anne Arundel school officials misapplied disciplinary policy because there was no disruption to the classroom.

But the state board cited the teacher’s testimony that the instructional day had begun, with students working in journals while finishing their breakfasts. The state board wrote that the outburst “constitutes classroom disruption in that it interfered with instruction, learning and an orderly school environment.”

The parents also unsuccessfully argued that the child’s due process rights were violated, alleging Anne Arundel’s school board “rubber-stamped” the report of a hearing examiner without conducting its own review of the case or calling more witnesses.

The boy’s family also argued that the decision was contrary to good educational policy and that the child was simply being a mischievous 7-year-old. The state board said that claim went beyond its scope of review.

The 2013 incident dates to a period of heightened sensitivity to guns after the mass shooting at Sandy Hook Elementary School in Newtown, Conn. The boy’s punishment was one of several D.C.-area suspensions involving imaginary or toy guns.