mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
We use the new widget api to add a widget "add a person" on homepage. The homepage menu is deprecated.
29 lines
641 B
PHP
29 lines
641 B
PHP
<?php
|
|
|
|
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
namespace Chill\PersonBundle\Widget;
|
|
|
|
use Chill\MainBundle\Templating\Widget\WidgetInterface;
|
|
|
|
|
|
/**
|
|
* Add a button "add a person"
|
|
*
|
|
* @author julien
|
|
*/
|
|
class AddAPersonWidget implements WidgetInterface
|
|
{
|
|
public function render(
|
|
\Twig_Environment $env,
|
|
$place,
|
|
array $context,
|
|
array $config) {
|
|
return $env->render("ChillPersonBundle:Widget:homepage_add_a_person.html.twig");
|
|
}
|
|
}
|