protected function LinkItemNormalizer::hasNewEntity in Replication 8.2
Determines whether the item holds an unsaved entity.
Parameters
$data:
Return value
bool TRUE if the item holds an unsaved entity.
File
- src/
Normalizer/ LinkItemNormalizer.php, line 158
Class
Namespace
Drupal\replication\NormalizerCode
protected function hasNewEntity($data) {
return $data['uri'] instanceof ContentEntityInterface && $data['uri']
->isNew();
}