| @@ 49-66 (lines=18) @@ | ||
| 46 | /** |
|
| 47 | * {@inheritdoc} |
|
| 48 | */ |
|
| 49 | protected function assignVariables() |
|
| 50 | { |
|
| 51 | $this->templateVariables = array( |
|
| 52 | 'area' => array( |
|
| 53 | 'showBreadcrumbs' => false, |
|
| 54 | 'title' => $this->get('translator')->trans('acp.dashboard', array(), 'TwoMartensCoreBundle') |
|
| 55 | ), |
|
| 56 | 'siteTitle' => $this->get('translator')->trans( |
|
| 57 | 'acp.siteTitle', |
|
| 58 | array('globalTitle' => 'CoreBundle Test'), |
|
| 59 | 'TwoMartensCoreBundle' |
|
| 60 | ), |
|
| 61 | 'navigation' => array( |
|
| 62 | 'active' => 'home' |
|
| 63 | ), |
|
| 64 | ); |
|
| 65 | parent::assignVariables(); |
|
| 66 | } |
|
| 67 | } |
|
| 68 | ||
| @@ 114-132 (lines=19) @@ | ||
| 111 | /** |
|
| 112 | * {@inheritdoc} |
|
| 113 | */ |
|
| 114 | protected function assignVariables() |
|
| 115 | { |
|
| 116 | $this->templateVariables = [ |
|
| 117 | 'area' => [ |
|
| 118 | 'showBreadcrumbs' => true, |
|
| 119 | 'title' => $this->get('translator')->trans('acp.options', [], 'TwoMartensCoreBundle') |
|
| 120 | ], |
|
| 121 | 'siteTitle' => $this->get('translator')->trans( |
|
| 122 | 'acp.siteTitle', |
|
| 123 | ['globalTitle' => 'CoreBundle Test'], |
|
| 124 | 'TwoMartensCoreBundle' |
|
| 125 | ), |
|
| 126 | 'navigation' => [ |
|
| 127 | 'active' => 'system' |
|
| 128 | ], |
|
| 129 | 'success' => false |
|
| 130 | ]; |
|
| 131 | parent::assignVariables(); |
|
| 132 | } |
|
| 133 | } |
|
| 134 | ||