function reportdashboard_attributes() { global $CFG; $attributes = parent::reportdashboard_attributes(); if (!empty($CFG->block_reportdashboard_allowcssclasses)) { if (!empty($this->config->classes)) { $attributes['class'] .= ' ' . $this->config->classes; } } return $attributes; }