lib/components/web/widgets/Collector.php
public function getLocation($location, $owner = null)
    {
        $bucket = $this->getBucket('locations:' . $location);
        if (is_null($owner)) {
            return $bucket->toArray();
        } else {
            $result = [];
            foreach ($bucket as $key => $widget) {
                if ($widget->owner === $owner) {
                    $result[$key] = $widget;
                }
            }

            return $result;
        }
    }
public function getLocation($location, $owner = null)
    {
        $bucket = $this->getBucket('locations:' . $location);
        if (is_null($owner)) {
            return $bucket->toArray();
        } else {
            $result = [];
            foreach ($bucket as $key => $widget) {
                if ($widget->owner === $owner) {
                    $result[$key] = $widget;
                }
            }

            return $result;
        }
    }
Get location.

@param unknown $location
@param unknown $owner    (optional)

@return unknown