You are here

public function ContentSyncEvents::onContentSyncCreate in Content Synchronization 8.2

Same name and namespace in other branches
  1. 8 src/EventSubscriber/ContentSyncEvents.php \Drupal\content_sync\EventSubscriber\ContentSyncEvents::onContentSyncCreate()
  2. 3.0.x src/EventSubscriber/ContentSyncEvents.php \Drupal\content_sync\EventSubscriber\ContentSyncEvents::onContentSyncCreate()

This method is called whenever the EntityTypeEvents::CREATE event is
 dispatched.

Parameters

\Drupal\Core\Entity\EntityTypeEvent $event: The Event to process.

File

src/EventSubscriber/ContentSyncEvents.php, line 23

Class

ContentSyncEvents
Create a content subscriber.

Namespace

Drupal\content_sync\EventSubscriber

Code

public function onContentSyncCreate(EntityTypeEvent $event) {
  kint($event);
  \Drupal::logger('content_sync')
    ->notice("Create Event");
}