public function Formatter::getDependentEntities in Custom Formatters 8.3
Get all the dependent entities for this formatter.
Return value
ConfigEntityInterface[] The dependent entities.
Overrides FormatterInterface::getDependentEntities
File
- src/
Entity/ Formatter.php, line 102
Class
- Formatter
- Defines the formatter entity.
Namespace
Drupal\custom_formatters\EntityCode
public function getDependentEntities() {
/** @var \Drupal\Core\Config\ConfigManagerInterface $config_manager */
$config_manager = \Drupal::service('config.manager');
// Get the dependent entities.
$dependent_entities = $config_manager
->findConfigEntityDependentsAsEntities('config', [
$this
->getConfigDependencyName(),
]);
return $dependent_entities;
}