public function DefaultContentEntityHandler::getForbiddenFields in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 src/Plugin/cms_content_sync/entity_handler/DefaultContentEntityHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultContentEntityHandler::getForbiddenFields()
- 2.0.x src/Plugin/cms_content_sync/entity_handler/DefaultContentEntityHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultContentEntityHandler::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/ DefaultContentEntityHandler.php, line 64
Class
- DefaultContentEntityHandler
- Class DefaultContentEntityHandler, providing a minimalistic implementation for any content entity type.
Namespace
Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handlerCode
public function getForbiddenFields() {
// Ignore paragraphs parent_id as it is a reference id.
return array_merge(parent::getForbiddenFields(), [
'parent_id',
]);
}