Skip to content

el7cosmos/drupal-toolkit

Repository files navigation

Drupal Toolkit

Build Version Downloads

Features

Template

  • Provide twig namespace for twig files under MODULE_NAME/templates or THEME_NAME/templates directory
  • Provide attributes variable for twig files.

Single Directory Component (SDC) Integration

  • 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 componentMetadata variable for component's Twig file.

Predefined variables

Declare predefined variables in the following files:

  • settings.php: $app_root, $site_path

Note

Drupal is a registered trademark of Dries Buytaert.

Installation

  • 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages