In order to customize the content of the block under Sonata Admin (by default it's a link with text sonata project), you have to modify your app/config/config.yml file by adding this:
sonata_admin:
# ...
templates:
# Override default template
layout: AcmeAdminBundle::standard_layout.html.twig
Then create the standard_layout.html.twig file in the src/Acme/AdminBundle/Resources/views directory:
{# src/Acme/AdminBundle/Resources/views/standard_layout.html.twig #}
{% extends 'SonataAdminBundle::standard_layout.html.twig' %}
{% block side_bar_after_nav %}
<p class="text-center"><a href="{{ path('your_route') }}">Route name</a></p>
{% endblock %}
这将取代该块的默认内容 https://github.com/sonata-project/SonataAdminBundle/blob/0a3a7adfc907da0b4a7d5c542f6157aac4d33942/Resources/views/standard_layout.html.twig#L216.
If you don't want to place the file in a bundle, use this path in app/config/config.yml : layout: "::standard_layout.html.twig"
ant put the file in app/Resources/views.
And if you want to change the title Sonata Admin, add this to your app/config/config.yml file:
sonata_admin:
# ...
title: My Name