"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.10/core/lib/Drupal/Core/Form/BaseFormIdInterface.php" (26 Nov 2020, 504 Bytes) of package /linux/www/drupal-8.9.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "BaseFormIdInterface.php" see the Fossies "Dox" file reference documentation.

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