protected function processForm(ModelInterface $entity, array $parameters, $method = 'PUT') { /** * @var CommentInterface $entity */ if (null === $entity->getAuthor()) { $entity->setAuthor($this->getUserRole()); } return parent::processForm($entity, $parameters, $method); }
/** * @inheritdoc * * Auto complete helper method * * @return TutorialManagerInterface */ protected function getDomainManager() { return parent::getDomainManager(); }