You are here

protected function DefaultEntityReferenceHandler::getInvalidSubfields in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 src/Plugin/cms_content_sync/field_handler/DefaultEntityReferenceHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\field_handler\DefaultEntityReferenceHandler::getInvalidSubfields()
  2. 2.0.x src/Plugin/cms_content_sync/field_handler/DefaultEntityReferenceHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\field_handler\DefaultEntityReferenceHandler::getInvalidSubfields()

Get a list of array keys from $entity->field_* values that should be ignored (unset before push).

Return value

array

Overrides EntityReferenceHandlerBase::getInvalidSubfields

1 method overrides DefaultEntityReferenceHandler::getInvalidSubfields()
DefaultFieldCollectionHandler::getInvalidSubfields in src/Plugin/cms_content_sync/field_handler/DefaultFieldCollectionHandler.php
Get a list of array keys from $entity->field_* values that should be ignored (unset before push).

File

src/Plugin/cms_content_sync/field_handler/DefaultEntityReferenceHandler.php, line 143

Class

DefaultEntityReferenceHandler
Providing a minimalistic implementation for any field type.

Namespace

Drupal\cms_content_sync\Plugin\cms_content_sync\field_handler

Code

protected function getInvalidSubfields() {
  return [
    '_accessCacheability',
    '_attributes',
    '_loaded',
    'top',
    'target_revision_id',
    'subform',
  ];
}