interface LingotekProfileUsageInterface in Lingotek Translation 3.5.x
Same name and namespace in other branches
- 8 src/LingotekProfileUsageInterface.php \Drupal\lingotek\LingotekProfileUsageInterface
- 8.2 src/LingotekProfileUsageInterface.php \Drupal\lingotek\LingotekProfileUsageInterface
- 4.0.x src/LingotekProfileUsageInterface.php \Drupal\lingotek\LingotekProfileUsageInterface
- 3.0.x src/LingotekProfileUsageInterface.php \Drupal\lingotek\LingotekProfileUsageInterface
- 3.1.x src/LingotekProfileUsageInterface.php \Drupal\lingotek\LingotekProfileUsageInterface
- 3.2.x src/LingotekProfileUsageInterface.php \Drupal\lingotek\LingotekProfileUsageInterface
- 3.3.x src/LingotekProfileUsageInterface.php \Drupal\lingotek\LingotekProfileUsageInterface
- 3.4.x src/LingotekProfileUsageInterface.php \Drupal\lingotek\LingotekProfileUsageInterface
- 3.6.x src/LingotekProfileUsageInterface.php \Drupal\lingotek\LingotekProfileUsageInterface
- 3.7.x src/LingotekProfileUsageInterface.php \Drupal\lingotek\LingotekProfileUsageInterface
- 3.8.x src/LingotekProfileUsageInterface.php \Drupal\lingotek\LingotekProfileUsageInterface
Service contract for checking Lingotek profile usage.
@package Drupal\lingotek
Hierarchy
- interface \Drupal\lingotek\LingotekProfileUsageInterface
Expanded class hierarchy of LingotekProfileUsageInterface
All classes that implement LingotekProfileUsageInterface
1 file declares its use of LingotekProfileUsageInterface
File
- src/
LingotekProfileUsageInterface.php, line 10
Namespace
Drupal\lingotekView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LingotekProfileUsageInterface:: |
public | function | Check if a profile is configured to be used by config entities. | 1 |
LingotekProfileUsageInterface:: |
public | function | Check if a profile is used by content entities. | 1 |
LingotekProfileUsageInterface:: |
public | function | Check if a profile is configured to be used by content entities. | 1 |
LingotekProfileUsageInterface:: |
constant | Bit flag constant for unused profiles. | ||
LingotekProfileUsageInterface:: |
constant | Bit flag constant for profiles configured to be used by config entities. | ||
LingotekProfileUsageInterface:: |
constant | Bit flag constant for profiles assigned to content. | ||
LingotekProfileUsageInterface:: |
constant | Bit flag constant for profiles configured to be used by content entities. |