/**
  * @override \block_edit_form
  */
 protected function specific_definition($mform)
 {
     $mform->addElement('header', 'config_header', get_string('editform', block_mycontacts::MOODLE_COMPONENT));
     $mform->addElement('text', 'config_title', get_string('editform_title', block_mycontacts::MOODLE_COMPONENT));
     $mform->setType('config_title', PARAM_TEXT);
     $select = $mform->addElement('select', 'config_roles', get_string('editform_roles', block_mycontacts::MOODLE_COMPONENT), contacts_util::get_roles_menu());
     $select->setMultiple(true);
 }
 /**
  * @override \block_base
  */
 public function specialization()
 {
     global $USER;
     $this->contacts = contacts_util::get_contacts($USER->id, $this->get_config('roles', array()));
     $this->title = $this->get_config('title', $this->title);
 }