You are here

interface FrontendEnvironmentInterface in Build Hooks 8.2

Same name in this branch
  1. 8.2 src/Plugin/FrontendEnvironmentInterface.php \Drupal\build_hooks\Plugin\FrontendEnvironmentInterface
  2. 8.2 src/Entity/FrontendEnvironmentInterface.php \Drupal\build_hooks\Entity\FrontendEnvironmentInterface
Same name and namespace in other branches
  1. 3.x src/Plugin/FrontendEnvironmentInterface.php \Drupal\build_hooks\Plugin\FrontendEnvironmentInterface

Defines an interface for Frontend environment plugins.

Hierarchy

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\Plugin
View 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

Namesort descending Modifiers Type Description Overrides
ConfigurableInterface::defaultConfiguration public function Gets default configuration for this plugin. 11
ConfigurableInterface::getConfiguration public function Gets this plugin's configuration. 12
ConfigurableInterface::setConfiguration public function Sets the configuration for this plugin instance. 12
DependentPluginInterface::calculateDependencies public function Calculates dependencies for the configured plugin. 19
FrontendEnvironmentInterface::deploymentWasTriggered public function Determine if the deployment was triggered successfully. 1
FrontendEnvironmentInterface::getAdditionalDeployFormElements public function Allows the plugin to add elements to the deployment form. 6
FrontendEnvironmentInterface::getBuildHookDetails public function Get the info to trigger the hook based on the configuration of the plugin. 6
PluginFormInterface::buildConfigurationForm public function Form constructor. 36
PluginFormInterface::submitConfigurationForm public function Form submission handler. 32
PluginFormInterface::validateConfigurationForm public function Form validation handler. 18
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2