You are here

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

LinkItemNormalizer

Namespace

Drupal\replication\Normalizer

Code

protected function hasNewEntity($data) {
  return $data['uri'] instanceof ContentEntityInterface && $data['uri']
    ->isNew();
}