hook_install_tasks() - sample function body references a procedural callback name

Created on 6 October 2015, about 9 years ago
Updated 13 August 2024, 4 months ago

Problem/Motivation

API page: function hook_install_tasks

Stuff about needing to implement a custom form callback (i.e. "your profile would define a function named myprofile_settings_form() with associated validation and submit handlers") does not appear to be correct (that was the old D7 way...).

Proposed resolution

Instead, you must build the form using the new D8 Form API Symfony-esque way of doing this and then use that form's proper class name in the tasks array, this will automatically load the form.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
DocumentationΒ  β†’

Last updated 1 day ago

No maintainer
Created by

πŸ‡¬πŸ‡§United Kingdom loophole080

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

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