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. [Utility &amp; Helpers](/categories/utility)
4. /
5. chi-teck/field\_definition\_dumper

AbandonedArchivedDrupal-module[Utility &amp; Helpers](/categories/utility)

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 today

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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

1205d 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

[farmos/farmos

A web-based farm record keeping application.

1.3k7.1k1](/packages/farmos-farmos)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5344.1M554](/packages/drupal-core-composer-scaffold)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

43785.5k4](/packages/lullabot-drainpipe)[acquia/drupal-recommended-settings

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

111.3M6](/packages/acquia-drupal-recommended-settings)[acquia/cohesion

Site Studio

271.7M10](/packages/acquia-cohesion)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)

PHPackages © 2026

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