Improper options hook name

Created on 2 November 2023, about 1 year ago
Updated 12 June 2024, 5 months ago

Problem/Motivation

The options hook is named incorrectly, making it more easy to make mistakes by people trying to implement it.

Steps to reproduce

1. Inspect src/Plugin/views/filter/EntityReference.php
2. Note at the end of getReferenceableEntities we make a call to module handler to alter the referencable entities
3. Note the hook name is "verf_entites_options", whereas it should be "verf_entities_options"

Proposed resolution

Add a 2nd "i" to the word entites.

Remaining tasks

Do it

User interface changes

N/A

API changes

Instead of implementing the hook as "hook_verf_entites_options", implement it as "hook_verf_entities_options"

Data model changes

N/A

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇨🇦Canada CChiste

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