protected function configureListFields(ListMapper $listMapper)
{
$listMapper->addIdentifier('name', 'string', array('template' => 'NetworkingInitCmsBundle:MediaAdmin:list_custom.html.twig'))->add('createdAt', 'string', array('label' => 'label.created_at'))->add('size', 'string', array('label' => 'label.size'));
if ($this->request && $this->request->get('pcode') == '') {
$listMapper->add('_action', 'actions', array('actions' => array('show' => array(), 'edit' => array(), 'delete' => array())));
}
}