A woman in Los Angeles was sentenced to 15 years in prison this past week for what the authorities said was an unprovoked attack on an elderly man last year.

The woman, Laquisha Jones, 30, was accused of beating the man with a brick and telling him to “go back to your country,” the Los Angeles County District Attorney’s office said.

Ms. Jones was sentenced Thursday after pleading no contest to an elder abuse charge, as part of a plea agreement in December. She had previously been charged with attempted murder and elder abuse, including a “hate crime allegation,” a spokesman for the district attorney’s office said Friday. The plea agreement did not include the hate crime component, the spokesman said.

The case drew widespread attention after the man, Rodolfo Rodriguez, now 92, was left bloodied, bruised and bewildered on the sidewalk in Willowbrook, an unincorporated area of the county about 15 miles south of downtown Los Angeles, while going for a walk on the evening of July 4.