Compose the channel icon path.

@param $activity
@return mixed
325013
public function getIcons($activity)
    {
        $icon['location_icon'] = $this->twigExt->mediumIcon($activity->getLocation());
        $icon['activity_icon'] = '/'.$this->twigExt->mediumContext($activity->getLocation());

        return $icon;
    }
1114771
protected function getIconClass($action) {
        if (in_array($action, ['add', 'remove', 'clone', 'drag-handle'])) {
            return $this->iconMap[$action];
        }

        if (YII_DEBUG) {
            throw new InvalidConfigException('Out of bounds, "' . $action . '" not found in your iconMap');
        }
        return '';
    }
1274517
public function iconFunction($icon)
    {
        $icon = str_replace('+', ' '.$this->iconPrefix.'-', $icon);

        return sprintf('<%1$s class="%2$s %2$s-%3$s"></%1$s>', $this->iconTag, $this->iconPrefix, $icon);
    }
65596
public static function rpath(String $file = NULL) : String
    {
        $config = Config::get('Filesystem', 'file', self::$access);

        self::$access = NULL;

        if( $config['parentDirectoryAccess'] === false )
        {
            $file = str_replace('../', '', $file);
        }

        if( $config['realPath'] === true )
        {
            $file = Base::prefix(self::originpath($file), REAL_BASE_DIR);
        }

        return $file;
    }
715031
public function iconUrl($image, $size = 16)
    {
        if (!$image) {
            return '';
        }

        $parts = explode(';', $image);
        $fileId = $parts[0];

        $src = $this->router->generate('frontendmedia_icon', ['fileId' => $fileId, 'size' => $size], UrlGeneratorInterface::ABSOLUTE_URL);

        return $src;
    }
70980
private Drawable getActivityIconWithCache(ComponentName component) {
        // First check the icon cache
        String componentIconKey = component.flattenToShortString();
        // Using containsKey() since we also store null values.
        if (mOutsideDrawablesCache.containsKey(componentIconKey)) {
            Drawable.ConstantState cached = mOutsideDrawablesCache.get(componentIconKey);
            return cached == null ? null : cached.newDrawable(mProviderContext.getResources());
        }
        // Then try the activity or application icon
        Drawable drawable = getActivityIcon(component);
        // Stick it in the cache so we don't do this lookup again.
        Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState();
        mOutsideDrawablesCache.put(componentIconKey, toCache);
        return drawable;
    }
297701
public function themePath(string $resource): string
    {
        if (null === $this->theme) {
            return $resource;
        }

        if (file_exists($this->sourceDirectory.'/'.$resource)) {
            return $resource;
        }

        $themeResource = $this->findThemeResource($this->theme, $resource);
        if (null !== $themeResource) {
            return $themeResource;
        }

        if (isset($this->theme['parent'])) {
            $themeResource = $this->findThemeResource($this->theme['parent'], $resource);
            if (null !== $themeResource) {
                return $themeResource;
            }
        }

        return $resource;
    }
916707
public static function getViewPath(string $append = null): string
    {
        if ($append === null) {
            return static::$viewPath;
        } else {
            return str_replace(DS . DS, DS, static::$viewPath . $append);
        }
    }
996305
public function imagePath($image)
    {
        if (!$image) {
            return '';
        }

        $parts = explode(';', $image);
        $fileId = $parts[0];

        // deliver original file
        $src = $this->router->generate('frontendmedia_inline', ['fileId' => $fileId], UrlGeneratorInterface::ABSOLUTE_PATH);

        return $src;
    }
1300852
public function getPlaceIcon(\Fisharebest\Webtrees\Place $place) {
		if(!$place->isEmpty()){
			$place_details =
				Database::prepare('SELECT pl_icon FROM `##placelocation` WHERE pl_id=? ORDER BY pl_place')	
				->execute(array($this->getProviderPlaceId($place)))
				->fetchOneRow();
			if($place_details){
				return WT_MODULES_DIR.'googlemap/'.$place_details->pl_icon;
			}
		}
		return null;		
	}
1110180
public function compose(): string
    {
        return sprintf('%s_%s',
            $this->appUUID instanceof AppUUID
                ? str_replace('_', '-', $this->appUUID->composeUUID())
                : '',
            $this->indexUUID instanceof IndexUUID
                ? str_replace('_', '-', $this->indexUUID->composeUUID())
                : ''
        );
    }
1193246
public function translateActivityFormat(ComActivitiesActivityInterface $activity)
    {
        $tokens = $this->getActivityTokens($activity);
        $format = $activity->getActivityFormat();

        $parameters = array();

        foreach ($tokens as $key => $value)
        {
            if ($value instanceof ComActivitiesActivityObjectInterface && $value->getObjectName()) {
                $value = $value->getObjectName();
            }

            if (is_scalar($value)) {
                $parameters[$key] = $value;
            }
        }

        $formats = array();

        for ($i = 0; $i < 2; $i++)
        {
            $catalogue = $this->getCatalogue();

            if ($length = $catalogue->getConfig()->key_length) {
                $catalogue->getConfig()->key_length = false;
            }

            $formats[] = $this->translate($this->_getOverride($format, $parameters), array());

            if ($length) {
                $catalogue->getConfig()->key_length = $length;
            }

            if ($i == 0 && isset($this->_locales[$formats[0]])) {
                break; // Format already localized, no need to compare
            } else {
                $this->_switchCatalogues();
            }
        }

        if (count($formats) > 1)
        {
            list($format, $decorator_format) = $formats;
            $this->_locales[$format] = ($format == $decorator_format) ? $this->getLocaleFallback() : $this->getLocale();
        }
        else $format = $formats[0];

        // Set the activity locale.
        $activity->setLocale($this->_locales[$format]);

        return $format;
    }
1083058
protected function setIcon($actions, $num = 1)
    {
        foreach ($actions as $key=>$moudel){
            if(isset($moudel['actions'])){
                $actions[$key]['iconClose'] = $this->assets_path."/js/zTree_v3/img/zt-folder.png";
                $actions[$key]['iconOpen'] = $this->assets_path."/js/zTree_v3/img/zt-folder-o.png";
                $actions[$key]['open'] = true;
                $actions[$key]['isParent'] = true;
                $actions[$key]['actions'] = $this->setIcon($moudel['actions'], $num = 1);
            }else{
                $actions[$key]['icon'] = $this->assets_path."/js/zTree_v3/img/zt-file.png";
                $actions[$key]['isParent'] = false;
                $actions[$key]['isText'] = true;
            }
        }
        return $actions;
    }
1218008
public function getIcon(AbstractContent $content)
    {
        $iconUri = null;
        foreach ($this->iconizers as $iconizer) {
            if (null !== $iconUri = $iconizer->getIcon($content)) {
                break;
            }            
        }
        return $iconUri;
    }
714957
public function iconFunction($icon, $iconSet = 'icon')
    {
        if ($iconSet == 'icon') {
            $iconSet = $this->iconPrefix;
        }
        $icon = str_replace('+', ' '.$iconSet.'-', $icon);

        return sprintf('<%1$s class="%2$s %2$s-%3$s"></%1$s>', $this->iconTag, $iconSet, $icon);
    }
222400
public function getUriForDiagrammType($type)
    {
        switch ($type) {
            case Diagramm::TYPE_ACTIVITY:
                $uri = $this->getOptions()->getYumlActivityDiagrammUrl();
                break;
            case Diagramm::TYPE_CLASS:
                $uri = $this->getOptions()->getYumlClassDiagrammUrl();
                break;
            case Diagramm::TYPE_DIAGRAMM:
                throw new \InvalidArgumentException('Unsupported diagramm type "' . $type . '"');
                break;
            case Diagramm::TYPE_USE_CASE:
                $uri = $this->getOptions()->getYumlUseCaseDiagrammUrl();
                break;
            default:
                throw new \InvalidArgumentException('Unkown diagramm type "' . $type . '"');
                break;
        }
        return $uri;
    }
1033983
public function Icon($ext)
    {
        if (!Director::fileExists(DMS_DIR."/images/app_icons/{$ext}_32.png")) {
            $ext = File::get_app_category($ext);
        }

        if (!Director::fileExists(DMS_DIR."/images/app_icons/{$ext}_32.png")) {
            $ext = "generic";
        }

        return DMS_DIR."/images/app_icons/{$ext}_32.png";
    }