public function SearchApiPage::calculateDependencies in Search API Pages 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/ SearchApiPage.php, line 143
Class
- SearchApiPage
- Defines the Search page entity.
Namespace
Drupal\search_api_page\EntityCode
public function calculateDependencies() {
parent::calculateDependencies();
$this
->addDependency('config', Index::load($this
->getIndex())
->getConfigDependencyName());
return $this;
}