Functions and data structures for managing various content modules
$this->fm
object is used to call these methods, suggesting they are part of a model or service class.prepareModuleImages
function:
$data['modules']
array contains all the processed modules sorted by their ‘top’ value, which likely represents their display order.num_items
parameter.MAIN_LANGUAGE
and SECOND_LANGUAGE
constants used to determine which content version to display.