You are here

public function AvatarKitEntityMap::calculateDependencies in Avatar Kit 8.2

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/AvatarKitEntityMap.php, line 52

Class

AvatarKitEntityMap
Defines the Avatar Kit field mapping entity.

Namespace

Drupal\avatars\Entity

Code

public function calculateDependencies() {
  parent::calculateDependencies();
  $this
    ->addDependency('config', 'field.field.' . $this->entity_type . '.' . $this->bundle . '.' . $this->field_name);
  return $this;
}