MDL-74465 block_rss_client: display config when adding

This commit is contained in:
Marina Glancy 2023-02-28 16:22:16 +00:00
parent 2fdfc9c362
commit 4d768ba508

View File

@ -89,4 +89,13 @@ class block_rss_client_edit_form extends block_edit_form {
$mform->addElement('selectyesno', 'config_block_rss_client_show_channel_image', get_string('clientshowimagelabel', 'block_rss_client'));
$mform->setDefault('config_block_rss_client_show_channel_image', 0);
}
/**
* Display the configuration form when block is being added to the page
*
* @return bool
*/
public static function display_form_when_adding(): bool {
return true;
}
}