. */ namespace Poniverse\Ponyfm\Mail; class ContentFavourited extends BaseNotification { /** * @inheritdoc */ public function build() { $creatorName = $this->initiatingUser->display_name; return $this->renderEmail( 'content-favourited', $this->activityRecord->text, [ 'creatorName' => $creatorName, 'resourceType' => $this->activityRecord->getResourceType(), 'resourceTitle' => $this->activityRecord->resource->resource->title, ]); } }