PHPackages                             chi-teck/field\_definition\_dumper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. chi-teck/field\_definition\_dumper

AbandonedArchivedDrupal-module

chi-teck/field\_definition\_dumper
==================================

Provides Drush commands to dump definitions of Drupal fields, widgets and formatters.

1.1.0(3y ago)1591GPL-2.0+PHPPHP &gt;=8.1

Since Mar 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Chi-teck/field_definition_dumper)[ Packagist](https://packagist.org/packages/chi-teck/field_definition_dumper)[ RSS](/packages/chi-teck-field-definition-dumper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

**Outdated: These commands have been moved to Drush core ([drush-ops/drush#5517](https://github.com/drush-ops/drush/pull/5517)).**

Field Definition Dumper
=======================

[](#field-definition-dumper)

Drush commands to dump definitions of Drupal fields, widgets and formatters.

Field display options in Drupal are not well documented. That makes it hard to find correct values for them when fields are defined in code. For instance, when you specify base field definitions for a custom entity type.

```
$fields['uid'] = BaseFieldDefinition::create('entity_reference')
  ->setLabel(t('Authored by'))
  ->setSetting('target_type', 'user')
  ->setDisplayOptions('form', [
    'type' => 'entity_reference_autocomplete',
    'settings' => [
      'match_operator' => 'CONTAINS',
      'size' => '30',
      'placeholder' => '',
    ],
  ])
  ->setDisplayOptions('view', [
    'label' => 'hidden',
    'type' => 'author',
  ]);
```

Another use case is rendering a field with specific formatter and settings.

```
$display_options = [
  'type' => 'entity_reference_label',
  'settings' => ['link' => FALSE],
];
$build = $node->uid->view($display_options);
```

```
{# Assuming Twig Tweak module is installed #}
{% set display_options = { type: 'entity_reference_label', settings: {link: false} } %}
{{ node.uid|view(display_options) }}
```

These Drush commands will save you from searching for the appropriate options in the source code of widgets and formatters.

Installation
------------

[](#installation)

```
composer require chi-teck/field_definition_dumper --dev
drush en field_definition_dumper

```

Given that the module is intended for local development, it's recommended you exclude it from the configuration by adding the following line to your local settings.php file.

```
$settings['config_exclude_modules'] = ['field_definition_dumper'];
```

Usage
-----

[](#usage)

```
drush field:dump:types --help
drush field:dump:widgets --help
drush field:dump:formatters --help

```

License
-------

[](#license)

GNU General Public License, version 2 or later.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~179 days

Total

3

Last Release

1154d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.0

1.1.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/673139?v=4)[Ivan](/maintainers/chi-teck)[@Chi-teck](https://github.com/Chi-teck)

---

Top Contributors

[![Chi-teck](https://avatars.githubusercontent.com/u/673139?v=4)](https://github.com/Chi-teck "Chi-teck (9 commits)")

---

Tags

drupal

### Embed Badge

![Health badge](/badges/chi-teck-field-definition-dumper/health.svg)

```
[![Health](https://phpackages.com/badges/chi-teck-field-definition-dumper/health.svg)](https://phpackages.com/packages/chi-teck-field-definition-dumper)
```

###  Alternatives

[jigarius/drall

Drall is a command-line utility to run drush on multi-site Drupal installations.

35105.9k](/packages/jigarius-drall)[acquia/drupal-recommended-settings

The composer plugin for adding drupal-recommended-settings for Acquia Cloud.

101.1M4](/packages/acquia-drupal-recommended-settings)[kevinquillen/recipe-generator

Adds Drush command(s) to help generate Recipes for Drupal.

1413.7k3](/packages/kevinquillen-recipe-generator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
