public function LingotekConfigurationServiceInterface::getEntityProfile in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 8 src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::getEntityProfile()
- 8.2 src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::getEntityProfile()
- 4.0.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::getEntityProfile()
- 3.0.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::getEntityProfile()
- 3.1.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::getEntityProfile()
- 3.2.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::getEntityProfile()
- 3.3.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::getEntityProfile()
- 3.4.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::getEntityProfile()
- 3.5.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::getEntityProfile()
- 3.6.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::getEntityProfile()
- 3.7.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::getEntityProfile()
Determines the default Lingotek profile for the given entity.
@returns \Drupal\lingotek\LingotekProfileInterface The default profile.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity.
bool $provide_default: If TRUE, and the entity does not have a profile, will retrieve the default for this entity type and bundle. Defaults to TRUE.
1 method overrides LingotekConfigurationServiceInterface::getEntityProfile()
- LingotekConfigurationService::getEntityProfile in src/
LingotekConfigurationService.php - Determines the default Lingotek profile for the given entity.
File
- src/
LingotekConfigurationServiceInterface.php, line 155
Class
- LingotekConfigurationServiceInterface
- Defines service for accessing the Lingotek configuration.
Namespace
Drupal\lingotekCode
public function getEntityProfile(ContentEntityInterface $entity, $provide_default = TRUE);