Skip to content

nvelychenko/drupal-extend

Repository files navigation

drupal-extend

Build Version Downloads

The plugin is enhancement for your Drupal development experience.

Features

  • Autocomplete for Content/Config Entities Storage (eck support) Storage autocomplete example

  • Fields autocomplete (default configuration directory points to the config/sync directory, you can change it inside plugin settings. Settings -> PHP -> Drupal Extend) Fields autocomplete example

  • Field properties autocomplete e.g. $node->get('field_user')->en| it will autocomplete entity in this case.

  • Autocomplete for render element types and their properties. Render element types autocomplete

  • Storage reference provider Storage reference

  • Fields reference provider Fields reference

  • Reference provider for Render element types and themes. Reference provider for Render element types and themes

  • Entity Type Provider for $storage->load/loadMultiple/loadByProperties Entity type provider

  • Type Provider for static Node::load/create/loadMultiple methods

  • Type Provider for \Drupal::service('')

  • Autocomplete for #theme Theme autocomplete example

  • Render element type and theme highlight (Annotator)

  • Fields autocomplete in content entity queries and entity storages autocomplete in \Drupal::entityQuery()

Installation

  • Using the IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "drupal-extend" > Install

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

Troubleshooting

  • Entity type resolver has a chance to not work 10-20% of time if you are using .phpstorm.meta.php generated via drush generate-metadata. Plugin provides all features from that file, so you can safely delete it.