public function setRouteRoot($routeRoot) { // make limitation on base path work parent::setRootPath($routeRoot); // TODO: fix widget to show root node when root is selectable // https://github.com/sonata-project/SonataDoctrinePhpcrAdminBundle/issues/148 $this->routeRoot = PathHelper::getParentPath($routeRoot); }
/** * @param mixed $object * @return mixed|string */ public function toString($object) { return $object instanceof ImageLink && $object->getLabel() ? $object->getLabel() : parent::toString($object); }
/** * @param mixed $object * @return mixed|string */ public function toString($object) { return $object instanceof FontTitleDescTarget && $object->getLabel() ? $object->getLabel() : parent::toString($object); }
/** * @param mixed $object * * @return mixed|string */ public function toString($object) { return $object instanceof TitleText && $object->getLabel() ? $object->getLabel() : parent::toString($object); }
/** * @param mixed $object * @return mixed|string */ public function toString($object) { return $object instanceof TitleSubDescImageTarget && $object->getLabel() ? $object->getLabel() : parent::toString($object); }