for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Neimheadh\SonataAnnotationBundle\Annotation;
/**
* Datagrid field annotation.
*
* Allow you to configure the datagrid for the annotated field.
* @Annotation
* @Target("PROPERTY")
* @author Marko Kunic <[email protected]>
* @author Mathieu Wambre <[email protected]>
*/
class DatagridField extends AbstractField implements PositionAnnotationInterface
{
* Filtering options.
* @var array
public array $filterOptions = [];
* Datagrid form field type options.
public array $fieldOptions = [];
* Datagrid field position.
* @var int
public int $position;
* Get field settings.
* @return array
public function getSettings(): array
return [
$this->type ?? null,
$this->filterOptions,
$this->fieldOptions,
$this->fieldDescriptionOptions,
];
}