interface FrontendEnvironmentInterface in Build Hooks 8.2
Same name in this branch
- 8.2 src/Plugin/FrontendEnvironmentInterface.php \Drupal\build_hooks\Plugin\FrontendEnvironmentInterface
- 8.2 src/Entity/FrontendEnvironmentInterface.php \Drupal\build_hooks\Entity\FrontendEnvironmentInterface
Same name and namespace in other branches
- 3.x src/Plugin/FrontendEnvironmentInterface.php \Drupal\build_hooks\Plugin\FrontendEnvironmentInterface
Defines an interface for Frontend environment plugins.
Hierarchy
- interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\DependentPluginInterface; interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\build_hooks\Plugin\FrontendEnvironmentInterface
Expanded class hierarchy of FrontendEnvironmentInterface
All classes that implement FrontendEnvironmentInterface
3 files declare their use of FrontendEnvironmentInterface
- FrontendEnvironmentForm.php in src/
Form/ FrontendEnvironmentForm.php - ResponseEvent.php in src/
Event/ ResponseEvent.php - Trigger.php in src/
Trigger.php
File
- src/
Plugin/ FrontendEnvironmentInterface.php, line 16
Namespace
Drupal\build_hooks\PluginView source
interface FrontendEnvironmentInterface extends ConfigurableInterface, DependentPluginInterface, PluginFormInterface, PluginInspectionInterface {
/**
* Get the info to trigger the hook based on the configuration of the plugin.
*
* @return \Drupal\build_hooks\BuildHookDetails
* An object containing the details to trigger the hook.
*/
public function getBuildHookDetails();
/**
* Allows the plugin to add elements to the deployment form.
*
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current form state.
*
* @return array
* A form array to add to the deployment form.
*/
public function getAdditionalDeployFormElements(FormStateInterface $form_state);
/**
* Determine if the deployment was triggered successfully.
*
* @param \Psr\Http\Message\ResponseInterface $response
* Response for the trigger request.
*
* @return bool
* TRUE if the deployment succeeded.
*/
public function deploymentWasTriggered(ResponseInterface $response) : bool;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 19 |
FrontendEnvironmentInterface:: |
public | function | Determine if the deployment was triggered successfully. | 1 |
FrontendEnvironmentInterface:: |
public | function | Allows the plugin to add elements to the deployment form. | 6 |
FrontendEnvironmentInterface:: |
public | function | Get the info to trigger the hook based on the configuration of the plugin. | 6 |
PluginFormInterface:: |
public | function | Form constructor. | 36 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |