Use Drupal Conditions API to include / exclude by certain conditions

Created on 23 October 2024, 7 months ago

Problem/Motivation

The settings page should allow to include / exclude certain conditions. Like roles, paths...

For that, Drupal provides condition plugins: https://www.previousnext.com.au/blog/using-drupal-8-condition-plugins-api
You can see their usage for example in blocks: https://www.therussianlullaby.com/blog/condition-plugins-for-visibility-...

But we don't want to add our own conditions, but use the available conditions instead of reinventing the wheel!
So conditions like path, roles, ... should be shown in the settings page

By default we should exclude typical paths like:

ajax/*
admin/*
batch/*
libraries/*
modules/*
profiles/*
sites/*
themes/*

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024