public function DefaultMediaHandler::getForbiddenFields in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/cms_content_sync/entity_handler/DefaultMediaHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultMediaHandler::getForbiddenFields()
- 2.1.x src/Plugin/cms_content_sync/entity_handler/DefaultMediaHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultMediaHandler::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/ DefaultMediaHandler.php, line 57
Class
- DefaultMediaHandler
- Class DefaultMediaHandler, providing a minimalistic implementation for the media entity type.
Namespace
Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handlerCode
public function getForbiddenFields() {
return array_merge(parent::getForbiddenFields(), [
// Must be recreated automatically on remote site.
'thumbnail',
]);
}