. namespace core_courseformat; /** * Contains the interface that any course format plugin should implement * when it wants to only display a single activity in the course page. * * @package core_courseformat * @copyright 2025 Sara Arjona * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ interface main_activity_interface { /** * Get the main activity of the course. * * @return \cm_info|null The main activity object or null if main activity is not set. */ public function get_main_activity(): ?\cm_info; }