PHP Class NerdsAndCompany\Schematic\Services\TagGroups

Sync Craft Setups.
Author: Nerds & Company
Inheritance: extends Base
Mostrar archivo Open project: itmundi/schematic Class Usage Examples

Public Methods

Method Description
export ( array $tagGroups = [] ) : array Export taggroups.
import ( array $tagGroupDefinitions, boolean $force = false ) : Result Attempt to import tagGroups.

Private Methods

Method Description
getTagGroupDefinition ( Craft\TagGroupModel $tagGroup ) : array Get tagGroup definition.
populateTagGroup ( Craft\TagGroupModel $tagGroup, array $tagGroupDefinition, string $tagGroupHandle ) Populate taggroup.

Method Details

export() public method

Export taggroups.
public export ( array $tagGroups = [] ) : array
$tagGroups array
return array

import() public method

Attempt to import tagGroups.
public import ( array $tagGroupDefinitions, boolean $force = false ) : Result
$tagGroupDefinitions array
$force boolean If set to true tagGroups not included in the import will be deleted
return Result