Xpressengine\Plugin\PluginEntity::getScreenshots PHP Method

getScreenshots() public method

플러그인의 아이콘 url을 반환한다.
public getScreenshots ( ) : string
return string
    public function getScreenshots()
    {
        $screenshots = $this->getMetaData('extra.xpressengine.screenshots');
        if ($screenshots === null || empty($screenshots)) {
            return [];
        }
        $resolved = [];
        foreach ($screenshots as $screenshot) {
            $path = $this->getPath($screenshot);
            if (realpath($path) !== false) {
                $class = $this->class;
                $file = $class::asset($screenshot);
                $resolved[] = $file;
            }
            if (realpath(base_path($screenshot)) !== false) {
                $resolved[] = asset($screenshot);
            }
        }
        return $resolved;
    }