PHP code example of paysera / fork-pix-digital-pix-sortable-behavior-bundle
1. Go to this page and download the library: Download paysera/fork-pix-digital-pix-sortable-behavior-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
paysera / fork-pix-digital-pix-sortable-behavior-bundle example snippets
// ClientAdmin.php
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('name')
->add('enabled')
->add('_action', null, array(
'actions' => array(
'move' => array(
'template' => 'AppBundle:Admin:_sort_drag_drop.html.twig',
'enable_top_bottom_buttons' => true, //optional
),
),
))
;
}
// ClientAdmin.php
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('name')
->add('enabled')
->add('_action', null, array(
'actions' => array(
'move' => array(
'template' => 'AppBundle:Admin:_sort.html.twig',
'enable_top_bottom_buttons' => true,
),
),
))
;
}