Ojs\CoreBundle\Events\EventDetail::getName PHP Method

getName() public method

public getName ( ) : string
return string
    public function getName()
    {
        return $this->name;
    }

Usage Example

Example #1
0
 private function syncEventDescription(EventDetail $eventDetail, $lang)
 {
     $findTemplates = $this->em->getRepository('OjsJournalBundle:MailTemplate')->findBy(['type' => $eventDetail->getName(), 'lang' => $lang]);
     foreach ($findTemplates as $template) {
         $this->io->writeln(sprintf('Updating description for  -> %s', $eventDetail->getName()));
         $template->setDescription($this->translator->trans($eventDetail->getName(), [], null, $lang));
         $template->setUpdatedBy('cli');
         $this->em->persist($template);
     }
 }