Set up a local 2.0.x environment

Last updated on
1 May 2026

If you want to contribute to the Views: Mark Current Entity module's 2.0.x branch, this guide will help you set up a local environment for developing and testing the module.

These instructions were last tested on 2026-04-29 using:

Requirements

You will need a relatively modern computer that can run DDEV. The commands below assume that you are using a Bash-like shell for Linux, Mac, or Windows Subsystem for Linux.

One-time setup

The following commands set up Views: Mark Current Entity version 2.0.x for development, and the add-ons needed to run lints and tests.

git clone --branch '2.0.x' git@git.drupal.org:project/views_mark_current.git
cd views_mark_current
ddev config --auto
ddev add-on get ddev/ddev-drupal-contrib
ddev add-on get ddev/ddev-selenium-standalone-chrome
ddev start
echo '$settings["extension_discovery_scan_tests"] = TRUE;' | tee -a web/sites/default/settings.php

Setup for working on an issue

When you start working on a new issue, it is often a good idea to re-install Drupal in your development environment. This way, your previous test content and configuration won't affect the results of your current work.

# Switch to the issue fork here

ddev poser
ddev exec "cd web/core && yarn install"
ddev symlink-project
ddev drush -y si standard
ddev drush -y en views_mark_current_test
ddev drush -y uli

Before submitting code

Views: Mark Current Entity runs a number of linters and automated tests in CI when you submit code. Running these linters and automated tests before you submit code will make it faster to easier for maintainers to review and accept your code!

ddev phpcs
ddev phpstan
ddev phpunit
ddev eslint
ddev stylelint

Help improve this page

Page status: No known problems

You can: