Use DcCompat when calling \Widget::getAttributesFromDca().