Move generic functions away from PollViewForm

Created on 12 March 2024, 4 months ago

Problem/Motivation

We have a few very generic functions in the PollViewForm class. I think it makes sense if we would move those to the Poll entity class or into a helper class so other modules/developers van profit and call those functions as well.

Proposed resolution

- isCancelAllowed https://git.drupalcode.org/project/poll/-/blob/2.0.x/src/Form/PollViewFo...
- isVotingAllowed https://git.drupalcode.org/project/poll/-/blob/2.0.x/src/Form/PollViewFo...

Remaining tasks

MR
Update release note as this is a potentially breaking change

User interface changes

N/A

API changes

New public methods available

Data model changes

N/A

πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium BramDriesen Belgium πŸ‡§πŸ‡ͺ

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

Comments & Activities

Production build 0.69.0 2024