Ojs\JournalBundle\Entity\Block::setTitle PHP Метод

setTitle() публичный Метод

Set title
public setTitle ( string $title ) : Block
$title string
Результат Block
    public function setTitle($title)
    {
        $this->translate()->setTitle($title);
        return $this;
    }

Usage Example

Пример #1
0
 public function testDelete()
 {
     $em = $this->em;
     $entity = new Block();
     $entity->setCurrentLocale('en');
     $entity->setTitle('Block');
     $entity->setBlockOrder(1);
     $entity->setColor('success');
     $journal = $em->getRepository('OjsJournalBundle:Journal')->find('1');
     $entity->setJournal($journal);
     $em->persist($entity);
     $em->flush();
     $id = $entity->getId();
     $this->logIn();
     $client = $this->client;
     $token = $this->generateToken('ojs_journal_block' . $id);
     $client->request('DELETE', '/journal/1/block/' . $id . '/delete', array('_token' => $token));
     $this->assertStatusCode(302, $client);
 }
All Usage Examples Of Ojs\JournalBundle\Entity\Block::setTitle