You are here

public function EntityProcessorBase::getEntityPublisher in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Processors/Entity/EntityProcessorBase.php \Drupal\content_synchronizer\Processors\Entity\EntityProcessorBase::getEntityPublisher()
  2. 3.x src/Processors/Entity/EntityProcessorBase.php \Drupal\content_synchronizer\Processors\Entity\EntityProcessorBase::getEntityPublisher()

Return the entity saver service.

Return value

\Drupal\content_synchronizer\Service\EntityPublisher The Entity publisher service.

File

src/Processors/Entity/EntityProcessorBase.php, line 577

Class

EntityProcessorBase
The entity processor base.

Namespace

Drupal\content_synchronizer\Processors\Entity

Code

public function getEntityPublisher() {
  if (is_null($this->entityPublisher)) {
    $this->entityPublisher = \Drupal::service(EntityPublisher::SERVICE_NAME);
  }
  return $this->entityPublisher;
}