public function TransactionType::calculateDependencies in Transaction 8
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/ TransactionType.php, line 296
Class
- TransactionType
- Provides a type of transaction.
Namespace
Drupal\transaction\EntityCode
public function calculateDependencies() {
// Add dependency on the target entity type provider.
$this
->addDependency('module', $this
->entityTypeManager()
->getDefinition($this->target_entity_type)
->getProvider());
// Add dependency on the plugin provider.
$this
->calculatePluginDependencies($this
->getPlugin());
return $this;
}