You are here

public function DefaultTaxonomyHandler::getForbiddenFields in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Plugin/cms_content_sync/entity_handler/DefaultTaxonomyHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultTaxonomyHandler::getForbiddenFields()
  2. 2.0.x src/Plugin/cms_content_sync/entity_handler/DefaultTaxonomyHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultTaxonomyHandler::getForbiddenFields()

Provide a list of fields that are not allowed to be pushed or pulled. These fields typically contain all label fields that are pushed separately anyway (we don't want to set IDs and revision IDs of entities for example, but only use the UUID for references).

Return value

string[]

Overrides EntityHandlerBase::getForbiddenFields

File

src/Plugin/cms_content_sync/entity_handler/DefaultTaxonomyHandler.php, line 90

Class

DefaultTaxonomyHandler
Class DefaultTaxonomyHandler.

Namespace

Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler

Code

public function getForbiddenFields() {
  return array_merge(parent::getForbiddenFields(), [
    'parent',
  ]);
}