If a class is given, this function registers an unnamed CMS widget class under
the given name. Otherwise,
Scrivito.provideWidgetClass generates a widget class using the
given definition.
Widget classes serve as boilerplates for CMS widgets. Their main purpose is to
define the attributes the instances require, for example an
html attribute named “content” and a
string attribute named “summary”.