WellCommerce\Bundle\PageBundle\Entity\Page::setRedirectType PHP Method

setRedirectType() public method

public setRedirectType ( $redirectType )
    public function setRedirectType($redirectType)
    {
        $this->redirectType = $redirectType;
    }

Usage Example

Example #1
0
 public function create() : PageInterface
 {
     $page = new Page();
     $page->setHierarchy(0);
     $page->setCreatedAt(new \DateTime());
     $page->setClientGroups($this->createEmptyCollection());
     $page->setShops($this->createEmptyCollection());
     $page->setParent(null);
     $page->setPublish(true);
     $page->setRedirectType(1);
     $page->setSection('');
     return $page;
 }
All Usage Examples Of WellCommerce\Bundle\PageBundle\Entity\Page::setRedirectType