function FilterFormat::calculatePluginDependencies
Same name in other branches
- 8.9.x core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::calculatePluginDependencies()
- 10 core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::calculatePluginDependencies()
- 11.x core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::calculatePluginDependencies()
Overrides PluginDependencyTrait::calculatePluginDependencies
File
-
core/
modules/ filter/ src/ Entity/ FilterFormat.php, line 437
Class
- FilterFormat
- Represents a text format.
Namespace
Drupal\filter\EntityCode
protected function calculatePluginDependencies(PluginInspectionInterface $instance) {
// Only add dependencies for plugins that are actually configured. This is
// necessary because the filter plugin collection will return all available
// filter plugins.
// @see \Drupal\filter\FilterPluginCollection::getConfiguration()
if (isset($this->filters[$instance->getPluginId()])) {
parent::calculatePluginDependencies($instance);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.