original_string: protected function _event($action, $data = [])
      {
          $_event = new Event('Controller.PostTypes.' . $this->type['name'] . '.' . $action, $this, $data);
          $this->eventManager()->dispatch($_event);
      }
code: protected function _event($action, $data = [])
      {
          $_event = new Event('Controller.PostTypes.' . $this->type['name'] . '.' . $action, $this, $data);
          $this->eventManager()->dispatch($_event);
      }
code_tokens: protected function _event ( $ action , $ data = [ ] ) { $ _event = new Event ( 'Controller.PostTypes.' . $ this -> type [ 'name' ] . '.' . $ action , $ this , $ data ) ; $ this -> eventManager ( ) -> dispatch ( $ _event ) ; }
docstring: Fires an event with the PostType-prefix.
  
  @param string $action Current action.
  @param array $data data that should be sent with the event.
  @return void
docstring_tokens: Fires an event with the PostType - prefix .