27 lines
584 B
PHP
27 lines
584 B
PHP
<?php
|
|
|
|
namespace humhub\modules\animal_management\widgets\stream;
|
|
|
|
use humhub\modules\animal_management\models\AnimalStreamEntry;
|
|
use humhub\modules\content\widgets\stream\WallStreamModuleEntryWidget;
|
|
|
|
class AnimalStreamEntryWallEntry extends WallStreamModuleEntryWidget
|
|
{
|
|
/**
|
|
* @var AnimalStreamEntry
|
|
*/
|
|
public $model;
|
|
|
|
public function renderContent()
|
|
{
|
|
return $this->render('wall-entry', [
|
|
'entry' => $this->model,
|
|
]);
|
|
}
|
|
|
|
protected function getTitle()
|
|
{
|
|
return $this->model->getContentDescription();
|
|
}
|
|
}
|