interface SynonymsBehaviorConfigurableInterface in Synonyms 8
Interface of a configurable synonyms behavior.
Hierarchy
- interface \Drupal\synonyms\SynonymsService\Behavior\SynonymsBehaviorInterface
- interface \Drupal\synonyms\SynonymsService\Behavior\SynonymsBehaviorConfigurableInterface
 
 
Expanded class hierarchy of SynonymsBehaviorConfigurableInterface
All classes that implement SynonymsBehaviorConfigurableInterface
1 file declares its use of SynonymsBehaviorConfigurableInterface
- SynonymForm.php in src/
Form/ SynonymForm.php  
File
- src/
SynonymsService/ Behavior/ SynonymsBehaviorConfigurableInterface.php, line 11  
Namespace
Drupal\synonyms\SynonymsService\BehaviorView source
interface SynonymsBehaviorConfigurableInterface extends SynonymsBehaviorInterface {
  /**
   * Build configuration form.
   *
   * @param array $form
   *   Form into which your configuration form will be embedded. You are
   *   supposed to extend this array with additional configuration form elements
   *   that your behavior needs.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   Form state object that corresponds to this form.
   * @param array $configuration
   *   Array of existing configuration for your behavior. Normally you would use
   *   it as a source of default values for your configuration form elements.
   * @param \Drupal\synonyms\SynonymInterface $synonym_config
   *   Synonym config entity in the context of which the form is being built.
   *
   * @return array
   *   Extended $form that includes the form elements required for configuration
   *   of your behavior
   */
  public function buildConfigurationForm(array $form, FormStateInterface $form_state, array $configuration, SynonymInterface $synonym_config);
  /**
   * Validate submitted values into your configuration form.
   *
   * @param array $form
   *   Your configuration form as it was built in
   *   static::buildConfigurationForm().
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   Form state that corresponds to this form. You should rise form validation
   *   errors on this form state, should you discover any in user input.
   * @param \Drupal\synonyms\SynonymInterface $synonym_config
   *   Synonym config entity in the context of which the form is being built.
   */
  public function validateConfigurationForm(array &$form, FormStateInterface $form_state, SynonymInterface $synonym_config);
  /**
   * Process submitted values and generate new configuration.
   *
   * @param array $form
   *   Your configuration form as it was built in
   *   static::buildConfigurationForm().
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   Form state that corresponds to this form.
   * @param \Drupal\synonyms\SynonymInterface $synonym_config
   *   Synonym config entity in the context of which the form is being built.
   *
   * @return array
   *   Array of new behavior configuration that corresponds to the submitted
   *   values in the form
   */
  public function submitConfigurationForm(array &$form, FormStateInterface $form_state, SynonymInterface $synonym_config);
}Members
| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            SynonymsBehaviorConfigurableInterface:: | 
                  public | function | Build configuration form. | 2 | 
| 
            SynonymsBehaviorConfigurableInterface:: | 
                  public | function | Process submitted values and generate new configuration. | 2 | 
| 
            SynonymsBehaviorConfigurableInterface:: | 
                  public | function | Validate submitted values into your configuration form. | 2 | 
| 
            SynonymsBehaviorInterface:: | 
                  public | function | Get human readable title of this behavior. | 3 |