- Provide twig namespace for twig files under
MODULE_NAME/templatesorTHEME_NAME/templatesdirectory - Provide
attributesvariable for twig files.
-
Provide completion for SDC namespace in twig file and in render array:
{{ include('<caret>') }} {% embed '<caret>' %} {% include '<caret>' %}<?php $build = [ '#type' => 'component', '#component' => '<caret>', ];
-
Provide a goto symbol in twig files and in render array, allows ease of navigation by clicking the component's name.
-
Provide variables for slots and props in the component's Twig file.
-
Provide
componentMetadatavariable for component's Twig file.
Declare predefined variables in the following files:
settings.php:$app_root,$site_path
Note
Drupal is a registered trademark of Dries Buytaert.
-
Using the IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "drupal-toolkit" > Install
-
Using JetBrains Marketplace:
Go to JetBrains Marketplace and install it by clicking the Install to ... button in case your IDE is running.
You can also download the latest release from JetBrains Marketplace and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
-
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
Plugin based on the IntelliJ Platform Plugin Template.