public function afterSave(Event $event, EntityInterface $entity, ArrayObject $options = null)
    {
        if ($entity->isNew()) {
            snapshot();
        }
    }
public function afterSave(Event $event, EntityInterface $entity, ArrayObject $options = null)
    {
        if ($entity->isNew()) {
            snapshot();
        }
    }
public function afterSave ( Event $ event , EntityInterface $ entity , ArrayObject $ options = null ) { if ( $ entity -> isNew ( ) ) { snapshot ( ) ; } }
Regenerates snapshot after new content type is created.

@param \Cake\Event\Event $event The event that was triggered
@param \Cake\Datasource\EntityInterface $entity The entity that was saved
@param \ArrayObject $options Array of options
@return void
Regenerates snapshot after new content type is created .