Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nvelychenko/drupal-extend
Extends Drupal integration with PHPStorm
https://github.com/nvelychenko/drupal-extend
drupal phpstorm
Last synced: 4 months ago
JSON representation
Extends Drupal integration with PHPStorm
- Host: GitHub
- URL: https://github.com/nvelychenko/drupal-extend
- Owner: nvelychenko
- License: gpl-3.0
- Created: 2023-12-02T11:13:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-25T09:54:36.000Z (4 months ago)
- Last Synced: 2024-09-28T10:04:00.515Z (4 months ago)
- Topics: drupal, phpstorm
- Language: Kotlin
- Homepage: https://plugins.jetbrains.com/plugin/23474-drupal-extend
- Size: 4.13 MB
- Stars: 6
- Watchers: 1
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# drupal-extend
![Build](https://github.com/nvelychenko/drupal-extend/workflows/Build/badge.svg)
[![Version](https://img.shields.io/jetbrains/plugin/v/23474-drupal-extend.svg)](https://plugins.jetbrains.com/plugin/23474-drupal-extend)
[![Downloads](https://img.shields.io/jetbrains/plugin/d/23474-drupal-extend.svg)](https://plugins.jetbrains.com/plugin/23474-drupal-extend)The plugin is enhancement for your Drupal development experience.
## Features
* Autocomplete for Content/Config Entities Storage (eck support)
![Storage autocomplete example](./assets/storage_autocomplete.gif)* 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](./assets/field_autocomplete.gif)* 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](./assets/render_element_autocomplete.gif)* Storage reference provider
![Storage reference](./assets/storage_reference_provider.gif)* Fields reference provider
![Fields reference](./assets/field_reference.gif)* Reference provider for Render element types and themes.
![Reference provider for Render element types and themes](./assets/theme_render_element_reference.gif)* Entity Type Provider for `$storage->load/loadMultiple/loadByProperties`
![Entity type provider](./assets/entity_type_provider.png)* Type Provider for static `Node::load/create/loadMultiple` methods
* Type Provider for `\Drupal::service('')`
* Autocomplete for `#theme`
![Theme autocomplete example](./assets/theme_autocomplete.gif)* 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](https://github.com/nvelychenko/drupal-extend/releases/latest) 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.