BaseFormIdInterface.php 504 B

123456789101112131415161718192021
  1. <?php
  2. namespace Drupal\Core\Form;
  3. /**
  4. * Provides an interface for a Form that has a base form ID.
  5. *
  6. * This will become the $form_state->getBuildInfo()['base_form_id'] used to
  7. * generate the name of hook_form_BASE_FORM_ID_alter().
  8. */
  9. interface BaseFormIdInterface extends FormInterface {
  10. /**
  11. * Returns a string identifying the base form.
  12. *
  13. * @return string|null
  14. * The string identifying the base form or NULL if this is not a base form.
  15. */
  16. public function getBaseFormId();
  17. }