Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
public function initialize()
{
parent::initialize();
$this->displayUserTitleInProfileSectionTitle();
}
private function displayUserTitleInProfileSectionTitle()
{
if ($this->template !== 'user') {
return;
}
if (!isset($this->content['form_activity']['fields']['title']['value'])) {
return;
}
$title = $this->content['form_activity']['fields']['title']['value'];
$this->content['title'] = $this->content['title'] . ' - ' . $title;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment