PHP Class NerdsAndCompany\Schematic\Services\TagGroups

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

Méthodes publiques

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

Private Methods

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

Method Details

export() public méthode

Export taggroups.
public export ( array $tagGroups = [] ) : array
$tagGroups array
Résultat array

import() public méthode

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
Résultat Result