Networking\InitCmsBundle\Admin\Model\MediaAdmin::configureListFields PHP Method

configureListFields() protected method

protected configureListFields ( Sonata\AdminBundle\Datagrid\ListMapper $listMapper )
$listMapper Sonata\AdminBundle\Datagrid\ListMapper
    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())));
        }
    }