original_string: public function afterSave(Event $event, EntityInterface $entity, ArrayObject $options = null)
      {
          if ($entity->isNew()) {
              snapshot();
          }
      }
code: public function afterSave(Event $event, EntityInterface $entity, ArrayObject $options = null)
      {
          if ($entity->isNew()) {
              snapshot();
          }
      }
code_tokens: public function afterSave ( Event $ event , EntityInterface $ entity , ArrayObject $ options = null ) { if ( $ entity -> isNew ( ) ) { snapshot ( ) ; } }
docstring: 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
docstring_tokens: Regenerates snapshot after new content type is created .