public function LingotekConfigurationServiceInterface::setProfile in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::setProfile()
- 4.0.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::setProfile()
- 3.0.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::setProfile()
- 3.1.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::setProfile()
- 3.2.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::setProfile()
- 3.3.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::setProfile()
- 3.4.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::setProfile()
- 3.5.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::setProfile()
- 3.6.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::setProfile()
- 3.7.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::setProfile()
- 3.8.x src/LingotekConfigurationServiceInterface.php \Drupal\lingotek\LingotekConfigurationServiceInterface::setProfile()
Sets the default Lingotek profile for the given entity.
Parameters
ContentEntityInterface $entity: The entity.
string $profile_id: The profile id.
bool $save: Indicates if we should save the entity after setting the value.
1 method overrides LingotekConfigurationServiceInterface::setProfile()
- LingotekConfigurationService::setProfile in src/
LingotekConfigurationService.php - Sets the default Lingotek profile for the given entity.
File
- src/
LingotekConfigurationServiceInterface.php, line 164 - Contains \Drupal\lingotek\LingotekConfigurationServiceInterface
Class
- LingotekConfigurationServiceInterface
- Defines service for accessing the Lingotek configuration.
Namespace
Drupal\lingotekCode
public function setProfile(ContentEntityInterface &$entity, $profile_id, $save = TRUE);