protected function DefaultTaxonomyHandler::shouldMapByLabel in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/cms_content_sync/entity_handler/DefaultTaxonomyHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultTaxonomyHandler::shouldMapByLabel()
- 2.1.x src/Plugin/cms_content_sync/entity_handler/DefaultTaxonomyHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultTaxonomyHandler::shouldMapByLabel()
If set, terms will not be pulled if an identical term already exists. Instead, this term will be mapped when pulling content that references it.
2 calls to DefaultTaxonomyHandler::shouldMapByLabel()
- DefaultTaxonomyHandler::getHandlerSettings in src/
Plugin/ cms_content_sync/ entity_handler/ DefaultTaxonomyHandler.php - Get the handler settings.
- DefaultTaxonomyHandler::pull in src/
Plugin/ cms_content_sync/ entity_handler/ DefaultTaxonomyHandler.php - Pull the remote entity.
File
- src/
Plugin/ cms_content_sync/ entity_handler/ DefaultTaxonomyHandler.php, line 212
Class
- DefaultTaxonomyHandler
- Class DefaultTaxonomyHandler.
Namespace
Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handlerCode
protected function shouldMapByLabel() {
return isset($this->settings['handler_settings'][self::MAP_BY_LABEL_SETTING]) && 1 == $this->settings['handler_settings'][self::MAP_BY_LABEL_SETTING];
}