%PDF- %PDF-
| Direktori : /home/vacivi36/intranet.vacivitta.com.br/protected/humhub/modules/content/widgets/ |
| Current File : /home/vacivi36/intranet.vacivitta.com.br/protected/humhub/modules/content/widgets/PermaLink.php |
<?php
/**
* @link https://www.humhub.org/
* @copyright Copyright (c) 2015 HumHub GmbH & Co. KG
* @license https://www.humhub.com/licences
*/
namespace humhub\modules\content\widgets;
use yii\helpers\Url;
/**
* PermaLink for Wall Entries
*
* This widget will attached to the WallEntryControlsWidget and displays
* the "Permalink" Link to the Content Objects.
*
* @package humhub.modules_core.wall.widgets
* @since 0.5
*/
class PermaLink extends \yii\base\Widget
{
/**
* @var \humhub\modules\content\components\ContentActiveRecord
*/
public $content;
/**
* @inheritdoc
*/
public function run()
{
$permaLink = Url::to(['/content/perma', 'id' => $this->content->content->id], true);
return $this->render('permaLink', [
'permaLink' => $permaLink,
'id' => $this->content->content->id
]);
}
}
?>