Networking\InitCmsBundle\Model\ContentRoute::setContent PHP Метод

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

Initializes the object to function as a route
public setContent ( Symfony\Cmf\Component\Routing\RouteReferrersReadInterface $content )
$content Symfony\Cmf\Component\Routing\RouteReferrersReadInterface
    public function setContent(RouteReferrersReadInterface $content)
    {
        $this->content = $content;
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function getRoute()
 {
     return $this->contentRoute->setContent($this);
 }