Move interface out of plugin folders

Created on 14 December 2013, over 10 years ago
Updated 14 July 2023, 11 months ago

Updated: Comment #1

Problem/Motivation

From #2151829-13: Doctrine annotation parsing takes an unacceptable amount of time/memory on install → . There's no need to parse an interface for annotations.

Here's a list of offending interfaces (there might be more -- I searched for Entity/**/*Interface.php and Plugin/*/**/*Interface.php -- are there any more plugin namespaces in core?):

modules/entity_reference/lib/Drupal/entity_reference/Plugin/Type/Selection/SelectionInterface.php 
modules/views/lib/Drupal/views/Plugin/views/display/DisplayRouterInterface.php                     modules/views/lib/Drupal/views/Plugin/views/wizard/WizardInterface.php
modules/migrate/lib/Drupal/migrate/Entity/MigrationInterface.php

Proposed resolution

We should move interfaces outside plugin folders so that the Doctrine annotation parser doesn't hit them. This is way easier than teaching Doctrine to skip them.

Remaining tasks

N/A

User interface changes

N/A

API changes

Minor, relatively unused interfaces are moving.

📌 Task
Status

Closed: outdated

Version

9.5

Component
Plugin  →

Last updated about 17 hours ago

Created by

🇫🇮Finland olli

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

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.69.0 2024