concrete/src/Page/Page.php
public function addAdditionalPagePath($cPath, $commit = true)
    {
        $em = \ORM::entityManager();
        $path = new \Concrete\Core\Entity\Page\PagePath();
        $path->setPagePath('/'.trim($cPath, '/'));
        $path->setPageObject($this);
        $em->persist($path);
        if ($commit) {
            $em->flush();
        }

        return $path;
    }
public function addAdditionalPagePath($cPath, $commit = true)
    {
        $em = \ORM::entityManager();
        $path = new \Concrete\Core\Entity\Page\PagePath();
        $path->setPagePath('/'.trim($cPath, '/'));
        $path->setPageObject($this);
        $em->persist($path);
        if ($commit) {
            $em->flush();
        }

        return $path;
    }
public function addAdditionalPagePath ( $ cPath , $ commit = true ) { $ em = \ ORM :: entityManager ( ) ; $ path = new \ Concrete \ Core \ Entity \ Page \ PagePath ( ) ; $ path -> setPagePath ( '/' . trim ( $ cPath , '/' ) ) ; $ path -> setPageObject ( $ this ) ; $ em -> persist ( $ path ) ; if ( $ commit ) { $ em -> flush ( ) ; } return $ path ; }
Add a non-canonical page path to the current page.

@param string $cPath
@param bool $commit Should the new PagePath instance be persisted?

@return \Concrete\Core\Entity\Page\PagePath
Add a non - canonical page path to the current page .