code: public function onInsert(ResourceEventInterface $event)
      {
          $accounting = $this->getAccountingFromEvent($event);
  
          $this->buildName($accounting);
      }
docs: Insert event handler.
  
  @param ResourceEventInterface $event