<commit_before>How to Define Custom Options for Entity Properties
==================================================

This article explains how to define custom options for any entity property and
how to use those options in the `list`, `search` or `show` views.

Default Property Options
------------------------

Properties included in the `fields` option of any entity can define several
options (`property`, `label`, `template`, `type`, `help` and `css_class`):

```yaml
# app/config.yml
easy_admin:
    entities:
        User:
            class: AppBundle\Entity\User
            list:<commit_msg>Added an additional note<commit_after>How to Define Custom Options for Entity Properties
==================================================

This article explains how to define custom options for any entity property and
how to use those options in the `list`, `search` or `show` views. This technique
is useful for complex or highly customized backends, but it should be used
sparingly because it could require you some maintenance work when new versions
of this bundle are released.

Default Property Options
------------------------

Properties included in the `fields` option of any entity can define several
options (`property`, `label`, `template`, `type`, `help` and `css_class`):

```yaml
# app/config.yml
easy_admin:
    entities:
        User:
            class: AppBundle\Entity\User
            list:
{'fraction_non_alphanumeric': 0.16985138004246284, 'fraction_numerical': 0.0, 'mean_word_length': 3.6058631921824102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '819939', 'n_tokens_mistral': 335, 'n_tokens_neox': 323, 'n_words': 162}