Provide UI for pattern conditions

Created on 22 July 2021, over 3 years ago
Updated 6 June 2024, 6 months ago

Problem/Motivation

Pathauto pattern uses Condition plugins, but doesn't provide user interface for their management (except for the basic ones controlled from the pattern form).

Proposed resolution

Provide UI for condition management.

Remaining tasks

  • Move condition UI to a sub-module.
  • Write tests?
  • Document API changes? Do we need a change record?

User interface changes

  • Separate UI is added for management of additional conditions on a pattern.
  • "Conditions" operation is added to the list on the pattern listing page.
  • Local tasks are added for easier switching between the pattern edit form and condition list.

API changes

Methods added:

  • \Drupal\pathauto\PathautoPatternInterface::getLockedSelectionConditionPluginIds()

Behavior changed:

  • \Drupal\pathauto\Entity\PathautoPattern::addSelectionCondition() doesn't override UUID of the condition if it already exists.

Data model changes

No.

Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇵🇹Portugal dmitriy.trt

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024