testing_install_tasks_interface.profile

File

core/profiles/tests/testing_install_tasks_interface/testing_install_tasks_interface.profile

View source
<?php


/**
 * @file
 * Implement hooks.
 */

declare (strict_types=1);

/**
 * This implements install_tasks.
 *
 * We do not have implements so this does not get converted.
 * It should not run because this profile's TasksInterface supersedes
 * procedural implementations.
 */
function testing_hooks_install_tasks() : void {
  \Drupal::keyValue('testing_install_tasks_interface')->set('procedural_task', 'ran');
}

/**
 * This implements install_tasks_alter.
 *
 * We do not have implements so this does not get converted.
 * It should not run because this profile's TasksInterface supersedes
 * procedural implementations.
 */
function testing_hooks_install_tasks_alter() : void {
  \Drupal::keyValue('testing_install_tasks_interface')->set('procedural_alter', 'ran');
}

Functions

Title Deprecated Summary
testing_hooks_install_tasks This implements install_tasks.
testing_hooks_install_tasks_alter This implements install_tasks_alter.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.