protected function DefaultMenuLinkContentReferenceHandler::getFieldValuesForReference in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 src/Plugin/cms_content_sync/field_handler/DefaultMenuLinkContentReferenceHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\field_handler\DefaultMenuLinkContentReferenceHandler::getFieldValuesForReference()
- 2.0.x src/Plugin/cms_content_sync/field_handler/DefaultMenuLinkContentReferenceHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\field_handler\DefaultMenuLinkContentReferenceHandler::getFieldValuesForReference()
Get the values to be set to the $entity->field_*.
Parameters
$reference:
$intent:
Return value
array
Overrides EntityReferenceHandlerBase::getFieldValuesForReference
File
- src/
Plugin/ cms_content_sync/ field_handler/ DefaultMenuLinkContentReferenceHandler.php, line 58
Class
- DefaultMenuLinkContentReferenceHandler
- Reference menu references and make sure they're published as the content comes available.
Namespace
Drupal\cms_content_sync\Plugin\cms_content_sync\field_handlerCode
protected function getFieldValuesForReference($reference, $intent) {
return 'menu_link_content:' . $reference
->uuid();
}