a fan box. i classify it as retrofit, though of course they're used when a fan is installed in new construction.
old box (1950's) offered knockouts on sides and back, under the clamp.
formatting link
new box, with workaround: short twine taped to pull cable into box after box is recessed "behind" sheetrock.
formatting link