if ($urlConfig->
isMapped() &&
$resolverContext instanceof EntityResolverContext
) { $url =
$this->
resolveEntityValue($resolverContext->
getEntity(),
$urlConfig->
getStringValue());
if ($url) { $image->
setUrl($url);
} } $newTabConfig =
$config->
get('newTab'
);
if ($newTabConfig !== null
) { $image->
setNewTab($newTabConfig->
getBoolValue());
} } $mediaConfig =
$config->
get('media'
);
if ($mediaConfig &&
$mediaConfig->
getValue()) { $this->
addMediaEntity($slot,
$image,
$result,
$mediaConfig,
$resolverContext);
} } private function addMediaEntity( CmsSlotEntity
$slot,