public function LingotekConfigMetadata::calculateDependencies in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/Entity/LingotekConfigMetadata.php \Drupal\lingotek\Entity\LingotekConfigMetadata::calculateDependencies()
- 4.0.x src/Entity/LingotekConfigMetadata.php \Drupal\lingotek\Entity\LingotekConfigMetadata::calculateDependencies()
- 3.0.x src/Entity/LingotekConfigMetadata.php \Drupal\lingotek\Entity\LingotekConfigMetadata::calculateDependencies()
- 3.1.x src/Entity/LingotekConfigMetadata.php \Drupal\lingotek\Entity\LingotekConfigMetadata::calculateDependencies()
- 3.2.x src/Entity/LingotekConfigMetadata.php \Drupal\lingotek\Entity\LingotekConfigMetadata::calculateDependencies()
- 3.3.x src/Entity/LingotekConfigMetadata.php \Drupal\lingotek\Entity\LingotekConfigMetadata::calculateDependencies()
- 3.4.x src/Entity/LingotekConfigMetadata.php \Drupal\lingotek\Entity\LingotekConfigMetadata::calculateDependencies()
- 3.5.x src/Entity/LingotekConfigMetadata.php \Drupal\lingotek\Entity\LingotekConfigMetadata::calculateDependencies()
- 3.6.x src/Entity/LingotekConfigMetadata.php \Drupal\lingotek\Entity\LingotekConfigMetadata::calculateDependencies()
- 3.7.x src/Entity/LingotekConfigMetadata.php \Drupal\lingotek\Entity\LingotekConfigMetadata::calculateDependencies()
- 3.8.x src/Entity/LingotekConfigMetadata.php \Drupal\lingotek\Entity\LingotekConfigMetadata::calculateDependencies()
Calculates dependencies and stores them in the dependency property.
Return value
$this
Overrides ConfigEntityBase::calculateDependencies
See also
\Drupal\Core\Config\Entity\ConfigDependencyManager
File
- src/
Entity/ LingotekConfigMetadata.php, line 152
Class
- LingotekConfigMetadata
- Defines the Lingotek config metadata entity.
Namespace
Drupal\lingotek\EntityCode
public function calculateDependencies() {
parent::calculateDependencies();
// Create dependency on the config.
$dependency_name = $this
->getDependencyName();
$this
->addDependency('config', $dependency_name);
return $this;
}