NerdsAndCompany\Schematic\Services\GlobalSets::export PHP Method

export() public method

Export globalsets.
public export ( array $globalSets = [] ) : array
$globalSets array
return array
    public function export(array $globalSets = [])
    {
        Craft::log(Craft::t('Exporting Global Sets'));
        $globalDefinitions = [];
        foreach ($globalSets as $globalSet) {
            $globalDefinitions[$globalSet->handle] = $this->getGlobalDefinition($globalSet);
        }
        return $globalDefinitions;
    }