You are here

ContentExporterInterface.php in Content Synchronization 8.2

Same filename and directory in other branches
  1. 3.0.x src/Exporter/ContentExporterInterface.php

File

src/Exporter/ContentExporterInterface.php
View source
<?php

namespace Drupal\content_sync\Exporter;

use Drupal\Core\Entity\ContentEntityInterface;
interface ContentExporterInterface {

  /**
   * Exports the given entity.
   *
   * @param \Drupal\Core\Entity\ContentEntityInterface $entity
   * @param array $context
   *
   * @return array
   */
  public function exportEntity(ContentEntityInterface $entity, array $context = []);

}

Interfaces