/**
  * @inheritdoc
  */
 public function getContentContainerConfigUrl(ContentContainerActiveRecord $container)
 {
     if ($container instanceof User) {
         return $container->createUrl('/dropbox/user');
     }
     return "";
 }
Example #2
0
 /**
  * Creates url to stream BaseStreamAction including placeholders
  * which are replaced and handled by javascript.
  *
  * If a contentContainer is specified it will be used to create the url.
  *
  * @return string
  */
 protected function getStreamUrl()
 {
     $params = array_merge(['limit' => '-limit-', 'filters' => '-filter-', 'sort' => '-sort-', 'from' => '-from-', 'mode' => \humhub\modules\content\components\actions\Stream::MODE_NORMAL], $this->streamActionParams);
     if ($this->contentContainer) {
         return $this->contentContainer->createUrl($this->streamAction, $params);
     } else {
         array_unshift($params, $this->streamAction);
         return Url::to($params);
     }
 }
 /**
  * @inheritdoc
  */
 public function getContentContainerConfigUrl(ContentContainerActiveRecord $container)
 {
     return $container->createUrl('/calendar/external-source/index');
 }
 /**
  * @inheritdoc
  */
 public function getContentContainerConfigUrl(ContentContainerActiveRecord $container)
 {
     return $container->createUrl('/linklist/linklist/config');
 }