You are here

interface LingotekProfileUsageInterface in Lingotek Translation 8.2

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

Service contract for checking Lingotek profile usage.

@package Drupal\lingotek

Hierarchy

Expanded class hierarchy of LingotekProfileUsageInterface

All classes that implement LingotekProfileUsageInterface

1 file declares its use of LingotekProfileUsageInterface
LingotekProfileDeleteForm.php in src/Form/LingotekProfileDeleteForm.php

File

src/LingotekProfileUsageInterface.php, line 10

Namespace

Drupal\lingotek
View source
interface LingotekProfileUsageInterface {

  /**
   * Bit flag constant for profiles configured to be used by content entities.
   */
  const USED_BY_SETTINGS = 4;

  /**
   * Bit flag constant for unused profiles.
   */
  const UNUSED = 0;

  /**
   * Bit flag constant for profiles configured to be used by config entities.
   */
  const USED_BY_CONFIG = 2;

  /**
   * Bit flag constant for profiles assigned to content.
   */
  const USED_BY_CONTENT = 1;

  /**
   * Check if a profile is used by content entities.
   *
   * @param \Drupal\lingotek\LingotekProfileInterface $profile
   *   The profile being checked.
   * @return int
   *   Bitwise flag. Can include LingotekProfileUsageInterface::USED_BY_CONTENT
   *   or LingotekProfileUsageInterface::UNUSED.
   */
  public function isUsedByContent(LingotekProfileInterface $profile);

  /**
   * Check if a profile is configured to be used by config entities.
   *
   * @param \Drupal\lingotek\LingotekProfileInterface $profile
   *   The profile being checked.
   * @return int
   *   Bitwise flag. Can include LingotekProfileUsageInterface::USED_BY_CONFIG or
   *   LingotekProfileUsageInterface::UNUSED.
   */
  public function isUsedByConfig(LingotekProfileInterface $profile);

  /**
   * Check if a profile is configured to be used by content entities.
   *
   * @param \Drupal\lingotek\LingotekProfileInterface $profile
   *   The profile being checked.
   * @return int
   *   Bitwise flag. Can include LingotekProfileUsageInterface::USED_BY_SETTINGS
   *   or LingotekProfileUsageInterface::UNUSED.
   */
  public function isUsedByContentSettings(LingotekProfileInterface $profile);

}

Members

Namesort descending Modifiers Type Description Overrides
LingotekProfileUsageInterface::isUsedByConfig public function Check if a profile is configured to be used by config entities. 1
LingotekProfileUsageInterface::isUsedByContent public function Check if a profile is used by content entities. 1
LingotekProfileUsageInterface::isUsedByContentSettings public function Check if a profile is configured to be used by content entities. 1
LingotekProfileUsageInterface::UNUSED constant Bit flag constant for unused profiles.
LingotekProfileUsageInterface::USED_BY_CONFIG constant Bit flag constant for profiles configured to be used by config entities.
LingotekProfileUsageInterface::USED_BY_CONTENT constant Bit flag constant for profiles assigned to content.
LingotekProfileUsageInterface::USED_BY_SETTINGS constant Bit flag constant for profiles configured to be used by content entities.