{@inheritdoc }
@see \MyArtJaub\Webtrees\Map\MapProviderInterface::getProviderPlaceId()
544951
public function getProviderPlaceId(\Fisharebest\Webtrees\Place $place) {
		if(!$place->isEmpty()) {
			$parent = array_reverse(explode (',', $place->getGedcomName()));
			$place_id = 0;
			$nb_levels = count($parent);
			for ($i=0; $i < $nb_levels; $i++) {
				$parent[$i] = trim($parent[$i]);
				if (empty($parent[$i])) $parent[$i]='unknown';// GoogleMap module uses "unknown" while GEDCOM uses , ,
				$pl_id=Database::prepare('SELECT pl_id FROM `##placelocation` WHERE pl_level=? AND pl_parent_id=? AND pl_place LIKE ? ORDER BY pl_place')
					->execute(array($i, $place_id, $parent[$i]))
					->fetchOne();
				if (empty($pl_id)) break;
				$place_id = $pl_id;
			}
			return $place_id;
		}
		return null;
	}
401380
public function getProvider($key)
    {
        if (!$this->hasProvider($key)) {
            throw new \InvalidArgumentException(sprintf('Location Provider with key "%s" does not exist', $key));
        }

        return $this->providers[$key];
    }
989421
public function getProviderIcon()
    {
        $icons = $this->providerIcons;

        if (empty($icons)) {
            return null;
        }

        $sizes = [];

        foreach ($icons as $icon) {
            $sizes[$icon['url']] = $icon['size'];
        }

        return static::getBigger($sizes);
    }
570988
public function getChildrenAction()
    {
        $id = $this
            ->request
            ->query
            ->get('id');

        return $this->createResponseObject(function () use ($id) {
            return $this->normalizeLocationDataArray(
                $this
                    ->locationProvider
                    ->getChildren($id)
            );
        });
    }
325507
public function getDeathPlace(): Place
    {
        foreach ($this->getAllDeathPlaces() as $place) {
            return $place;
        }

        return new Place('', $this->tree);
    }
17772
public function getProvider($provider)
    {
        $name = is_string($provider) ? $provider : get_class($provider);

        return Arr::first($this->serviceProviders, function ($key, $value) use ($name) {
            return $value instanceof $name;
        });
    }
514560
static public function getMapParentId()
    {
        if (self::$_mapPrentId)
        {
            return self::$_mapPrentId;
        }
        
        $model = Cache::remember('map_tree', self::$lifeCache, function()
        {
            return DB::table('menus')->get();
        });
        
        $map = array();
        foreach ($model as $val)
        {
            $map[$val->parent_id][] = $val->id;
        }
        unset($val);
        
        self::$_mapPrentId = $map;
        return $map;
    }
632097
public function findForProvider()
    {
        $qb = $this->createQueryBuilder('m');
        $qb
            ->select(
                'm.id, IDENTITY(m.parent) as parent, m.name, m.route, m.parameters, m.root, '.
                'm.attributes, m.options, t.title, t.path'
            )
            ->leftJoin('m.translations', 't', Expr\Join::WITH, $qb->expr()->eq('t.locale', ':locale'))
            ->andWhere($qb->expr()->eq('m.enabled', ':enabled'))
            ->orderBy('m.left', 'ASC')
            ->addGroupBy('m.id');

        return $qb
            ->getQuery()
            ->useQueryCache(true)
            //->useResultCache(true, 3600, Menu::getEntityTagPrefix()) // TODO Use a more unique cache id and invalidate it.
            ->setParameters([
                'locale'  => $this->localeProvider->getCurrentLocale(),
                'enabled' => true,
            ])
            ->getArrayResult();
    }
140771
public static String getLocalizedId(String id, Locale locale) {
        String locstr = locale == null ? "" : ("_" + locale.toString());
        return id + locstr;
    }
1003266
public function getId() {
		$options = $this->getOptions();
		$id = elgg_extract('list_id', $options);
		if (!$id) {
			$id = md5($this->getBaseURL());
		}
		return $id;
	}
1061980
public function getUserProviderMapper()
    {
        if ($this->userProviderMapper == null) {
            $this->userProviderMapper = $this->getServiceManager()->get('playgrounduser_userprovider_mapper');
        }

        return $this->userProviderMapper;
    }
67621
protected function getLocation($providerName)
    {
        $folder = explode('/', $providerName);
        $filename = array_pop($folder);

        return array($folder, $filename);
    }
155278
public function getDataProvider()
    {
        if ($this->dataProvider === null) {
            $this->_id = $this->_id ?: Yii::$app->request->get('id');
            $this->dataProvider = $this->getSearchModel()->search([], $this->dataProviderOptions);
            $this->dataProvider->pagination = false;
            $this->dataProvider->query->andFilterWhere(
                is_array($this->_id) ? ['in', 'id', $this->_id] : ['eq', 'id', $this->_id]
            );
            if (empty($this->dataProvider->query->where)) {
                throw new BadRequestHttpException('ID is missing');
            }

            $this->dataProvider->query->andFilterWhere($this->findOptions);
        }

        return $this->dataProvider;
    }
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;		
	}
1271189
protected function getProvider($provider)
    {
        $provider = $this->lowerize((trim($provider)));
        $provider = array_key_exists($provider, $this->providers)
            ? $this->providers[$provider]
            : $this->providers['google_maps'];

        return '\\Geocoder\\Provider\\' . $provider . $provider;
    }
728460
public function getHandler( Location $location )
    {
        foreach ( $this->providers as $providersPriority )
        {
            foreach ( $providersPriority as $provider )
            {
                $currentHandler = $provider->getHandler( $location );

                if ( !$currentHandler instanceof NullHandler )
                {
                    return $currentHandler;
                }
            }
        }

        return new NullHandler();
    }
1371339
public function findWhere(int $id, array $parameters)
    {
        $key = $id . "_";
        foreach ($parameters as $k => $v) {
            $key .= $k . "_" . $v . "_";
        }
        return $this->cache->tags($this->getModel())->remember($key, 60, function () use ($id, $parameters) {
            return $this->repository->findWhere($id, $parameters);
        });
    }