You are here

interface TriggerInterface in Build Hooks 8.2

Same name and namespace in other branches
  1. 8 src/TriggerInterface.php \Drupal\build_hooks\TriggerInterface
  2. 3.x src/TriggerInterface.php \Drupal\build_hooks\TriggerInterface

Interface TriggerInterface.

Hierarchy

Expanded class hierarchy of TriggerInterface

All classes that implement TriggerInterface

7 files declare their use of TriggerInterface
BuildHooksConfigEntityTest.php in tests/src/Kernel/BuildHooksConfigEntityTest.php
BuildHooksKernelTestBase.php in tests/src/Kernel/BuildHooksKernelTestBase.php
CircleBuildHookTest.php in modules/build_hooks_circleci/tests/src/Kernel/CircleBuildHookTest.php
DeploymentForm.php in src/Form/DeploymentForm.php
FrontendEnvironmentForm.php in src/Form/FrontendEnvironmentForm.php

... See full list

File

src/TriggerInterface.php, line 10

Namespace

Drupal\build_hooks
View source
interface TriggerInterface {
  const DEPLOYMENT_STRATEGY_CRON = 'cron';
  const DEPLOYMENT_STRATEGY_ENTITYSAVE = 'entitysave';
  const BUILD_HOOKS_TOOLBAR_CACHE_TAG = 'build_hooks_toolbar';
  const DEPLOYMENT_STRATEGY_MANUAL = 'manual';

  /**
   * Deploy frontend environments.
   *
   * @return mixed
   *   Mixed.
   */
  public function deployFrontendCronEnvironments();

  /**
   * Triggers a build hook for an environment.
   *
   * @param \Drupal\build_hooks\Entity\FrontendEnvironmentInterface $frontend_environment
   *   The Environment to trigger the deployment for.
   *
   * @return mixed
   *   Mixed.
   */
  public function triggerBuildHookForEnvironment(FrontendEnvironmentInterface $frontend_environment);

  /**
   * Whether to show the menu.
   */
  public function showMenu();

  /**
   * Utility function to retrieve the cache tag to apply to the toolbar.
   *
   * @return string
   *   The toolbar cache tag.
   */
  public function getToolbarCacheTag();

  /**
   * Invalidates the toolbar cache tag.
   */
  public function invalidateToolbarCacheTag();

}

Members

Namesort descending Modifiers Type Description Overrides
TriggerInterface::BUILD_HOOKS_TOOLBAR_CACHE_TAG constant
TriggerInterface::deployFrontendCronEnvironments public function Deploy frontend environments. 1
TriggerInterface::DEPLOYMENT_STRATEGY_CRON constant
TriggerInterface::DEPLOYMENT_STRATEGY_ENTITYSAVE constant
TriggerInterface::DEPLOYMENT_STRATEGY_MANUAL constant
TriggerInterface::getToolbarCacheTag public function Utility function to retrieve the cache tag to apply to the toolbar. 1
TriggerInterface::invalidateToolbarCacheTag public function Invalidates the toolbar cache tag. 1
TriggerInterface::showMenu public function Whether to show the menu. 1
TriggerInterface::triggerBuildHookForEnvironment public function Triggers a build hook for an environment. 1