Notice: Undefined index: module code example
Example: Notice: Undefined index: module
function fullcalendar_legend_preprocess_block(&$variables) {
if(isset($variables['configuration']['module']) && $variables['configuration']['module'] == 'fullcalendar_legend') {
$variables['attributes']['class'][] = 'fullcalendar-legend';
}
}