You are here

public function EntityParser::prepareLocalEntity in Entity Share 8.3

Prepares entity loaded from local database.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: A Drupal content entity.

Overrides EntityParserInterface::prepareLocalEntity

File

modules/entity_share_diff/src/Service/EntityParser.php, line 142

Class

EntityParser
Entity parser.

Namespace

Drupal\entity_share_diff\Service

Code

public function prepareLocalEntity(ContentEntityInterface $entity) {
  $this
    ->setRemote(FALSE);
  return $this
    ->parseEntity($entity);
}