function config_test_delete_form

Form constructor to delete a ConfigTest object.

Parameters

Drupal\config_test\Plugin\Core\Entity\ConfigTest $config_test: The ConfigTest object to delete.

1 string reference to 'config_test_delete_form'
config_test_menu in drupal/core/modules/config/tests/config_test/config_test.module
Implements hook_menu().

File

drupal/core/modules/config/tests/config_test/config_test.module, line 171
Provides Config module hook implementations for testing purposes.

Code

function config_test_delete_form($form, &$form_state, ConfigTest $config_test) {
  $form_state['config_test'] = $config_test;
  $form['id'] = array(
    '#type' => 'value',
    '#value' => $config_test
      ->id(),
  );
  return confirm_form($form, format_string('Are you sure you want to delete %label', array(
    '%label' => $config_test
      ->label(),
  )), 'admin/structure/config_test', NULL, 'Delete');
}