Block::calculateDependencies

public Block::calculateDependencies()

Calculates dependencies and stores them in the dependency property.

Return value

$this

Overrides ConfigEntityBase::calculateDependencies

See also

\Drupal\Core\Config\Entity\ConfigDependencyManager

File

core/modules/block/src/Entity/Block.php, line 226

Class

Block
Defines a Block configuration entity class.

Namespace

Drupal\block\Entity

Code

1
2
3
4
5
public function calculateDependencies() {
  parent::calculateDependencies();
  $this->addDependency('theme', $this->theme);
  return $this;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.