You are here

interface LingotekModerationFactoryInterface in Lingotek Translation 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Moderation/LingotekModerationFactoryInterface.php \Drupal\lingotek\Moderation\LingotekModerationFactoryInterface
  2. 4.0.x src/Moderation/LingotekModerationFactoryInterface.php \Drupal\lingotek\Moderation\LingotekModerationFactoryInterface
  3. 3.1.x src/Moderation/LingotekModerationFactoryInterface.php \Drupal\lingotek\Moderation\LingotekModerationFactoryInterface
  4. 3.2.x src/Moderation/LingotekModerationFactoryInterface.php \Drupal\lingotek\Moderation\LingotekModerationFactoryInterface
  5. 3.3.x src/Moderation/LingotekModerationFactoryInterface.php \Drupal\lingotek\Moderation\LingotekModerationFactoryInterface
  6. 3.4.x src/Moderation/LingotekModerationFactoryInterface.php \Drupal\lingotek\Moderation\LingotekModerationFactoryInterface
  7. 3.5.x src/Moderation/LingotekModerationFactoryInterface.php \Drupal\lingotek\Moderation\LingotekModerationFactoryInterface
  8. 3.6.x src/Moderation/LingotekModerationFactoryInterface.php \Drupal\lingotek\Moderation\LingotekModerationFactoryInterface
  9. 3.7.x src/Moderation/LingotekModerationFactoryInterface.php \Drupal\lingotek\Moderation\LingotekModerationFactoryInterface
  10. 3.8.x src/Moderation/LingotekModerationFactoryInterface.php \Drupal\lingotek\Moderation\LingotekModerationFactoryInterface

A facade for getting the services that are part of moderation integrations.

@package Drupal\lingotek\Moderation

Hierarchy

Expanded class hierarchy of LingotekModerationFactoryInterface

All classes that implement LingotekModerationFactoryInterface

File

src/Moderation/LingotekModerationFactoryInterface.php, line 10

Namespace

Drupal\lingotek\Moderation
View source
interface LingotekModerationFactoryInterface {

  /**
   * Called when the tag collector finds a moderation configuration service.
   *
   * @param \Drupal\lingotek\Moderation\LingotekModerationConfigurationServiceInterface $service
   *   The moderation configuration service.
   * @param string $id
   *   The id of the tagged service.
   * @param int $priority
   *   The priority for the tagged service.
   */
  public function addModerationConfiguration(LingotekModerationConfigurationServiceInterface $service, $id, $priority);

  /**
   * Called when the tag collector finds a moderation settings form service.
   *
   * @param \Drupal\lingotek\Moderation\LingotekModerationSettingsFormInterface $service
   *   The moderation configuration service.
   * @param string $id
   *   The id of the tagged service.
   * @param int $priority
   *   The priority for the tagged service.
   */
  public function addModerationForm(LingotekModerationSettingsFormInterface $service, $id, $priority);

  /**
   * Called when the tag collector finds a moderation handler service.
   *
   * @param \Drupal\lingotek\Moderation\LingotekModerationHandlerInterface $service
   *   The moderation configuration service.
   * @param string $id
   *   The id of the tagged service.
   * @param int $priority
   *   The priority for the tagged service.
   */
  public function addModerationHandler(LingotekModerationHandlerInterface $service, $id, $priority);

  /**
   * Gets the first moderation configuration service applying to a given entity.
   *
   * @return \Drupal\lingotek\Moderation\LingotekModerationConfigurationServiceInterface
   *   The moderation configuration service.
   */
  public function getModerationConfigurationService();

  /**
   * Gets the first moderation settings form service applying to a given entity.
   *
   * @return \Drupal\lingotek\Moderation\LingotekModerationSettingsFormInterface
   *   The moderation settings form service.
   */
  public function getModerationSettingsForm();

  /**
   * Gets the first moderation handler service that applies to the given entity.
   *
   * @return \Drupal\lingotek\Moderation\LingotekModerationHandlerInterface
   *   The moderation handler service.
   */
  public function getModerationHandler();

}

Members

Namesort descending Modifiers Type Description Overrides
LingotekModerationFactoryInterface::addModerationConfiguration public function Called when the tag collector finds a moderation configuration service. 1
LingotekModerationFactoryInterface::addModerationForm public function Called when the tag collector finds a moderation settings form service. 1
LingotekModerationFactoryInterface::addModerationHandler public function Called when the tag collector finds a moderation handler service. 1
LingotekModerationFactoryInterface::getModerationConfigurationService public function Gets the first moderation configuration service applying to a given entity. 1
LingotekModerationFactoryInterface::getModerationHandler public function Gets the first moderation handler service that applies to the given entity. 1
LingotekModerationFactoryInterface::getModerationSettingsForm public function Gets the first moderation settings form service applying to a given entity. 1