public function DefaultFieldCollectionItemHandler::getForbiddenFields in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 src/Plugin/cms_content_sync/entity_handler/DefaultFieldCollectionItemHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultFieldCollectionItemHandler::getForbiddenFields()
- 2.0.x src/Plugin/cms_content_sync/entity_handler/DefaultFieldCollectionItemHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultFieldCollectionItemHandler::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/ DefaultFieldCollectionItemHandler.php, line 65
Class
- DefaultFieldCollectionItemHandler
- Class DefaultFieldCollectionItemHandler.
Namespace
Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handlerCode
public function getForbiddenFields() {
$forbidden = parent::getForbiddenFields();
$forbidden[] = 'host_type';
return $forbidden;
}