public function PictureMapping::hasMappings in Picture 7.2
Check if there are mappings.
Return value
bool TRUE if this PictureMapping has mappings, FALSE otherwise.
File
- includes/
PictureMapping.php, line 216 - Picture Mapping class.
Class
- PictureMapping
- Picture mapping class.
Code
public function hasMappings() {
$mapping_found = FALSE;
foreach ($this->mapping as $multipliers) {
foreach ($multipliers as $mapping_definition) {
if (!PictureMapping::isEmptyMappingDefinition($mapping_definition)) {
$mapping_found = TRUE;
break 2;
}
}
}
return $mapping_found;
}