. */ namespace App\DataTables\Column; use Omines\DataTablesBundle\Column\AbstractColumn; use Symfony\Component\OptionsResolver\OptionsResolver; /** * A column representing the checkboxes for select extensions. */ class SelectColumn extends AbstractColumn { public function configureOptions(OptionsResolver $resolver): static { parent::configureOptions($resolver); $resolver->setDefaults([ 'label' => '', 'orderable' => false, 'searchable' => false, 'className' => 'dt-select no-colvis', 'visible' => true, ]); return $this; } /** * @return mixed */ public function normalize($value): mixed { return $value; } public function render($value, $context): string { //Return empty string, as it this column is filled by datatables on client side return ''; } }