interface FrontendEnvironmentInterface in Build Hooks 3.x
Same name in this branch
- 3.x src/Plugin/FrontendEnvironmentInterface.php \Drupal\build_hooks\Plugin\FrontendEnvironmentInterface
- 3.x src/Entity/FrontendEnvironmentInterface.php \Drupal\build_hooks\Entity\FrontendEnvironmentInterface
Same name and namespace in other branches
- 8.2 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
2 files declare their use of FrontendEnvironmentInterface
- FrontendEnvironmentForm.php in src/
Form/ FrontendEnvironmentForm.php - ResponseEvent.php in src/
Event/ ResponseEvent.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;
/**
* React before a build is triggered.
*
* @param \Drupal\build_hooks\Event\BuildTrigger $trigger
* The build trigger.
*/
public function preDeploymentTrigger(BuildTrigger $trigger) : void;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 14 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 15 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 15 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 20 |
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 |
FrontendEnvironmentInterface:: |
public | function | React before a build is triggered. | 1 |
PluginFormInterface:: |
public | function | Form constructor. | 37 |
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 |