Themosis\Asset\Asset::to PHP Method

to() public method

Only 'admin', 'login' and 'customizer' are accepted. If none of those values are used, simply keep the default front-end area.
public to ( string $area ) : Asset
$area string Specify where to load the asset: 'admin', 'login' or 'customizer'.
return Asset
    public function to($area)
    {
        if (is_string($area) && in_array($area, $this->allowedAreas)) {
            $this->area = $area;
            $this->orderInstances();
        }
        return $this;
    }