public function EntityPrintPluginManager::getDisabledDefinitions in Entity Print 8.2
Gets all disabled print engine definitions.
Parameters
string $filter_export_type: The export type you want to filter by.
Return value
array An array of disabled print engine definitions.
Overrides EntityPrintPluginManagerInterface::getDisabledDefinitions
1 call to EntityPrintPluginManager::getDisabledDefinitions()
- EntityPrintPluginManager::isPrintEngineEnabled in src/
Plugin/ EntityPrintPluginManager.php - Checks if a plugin is enabled based on its dependencies.
File
- src/
Plugin/ EntityPrintPluginManager.php, line 129
Class
- EntityPrintPluginManager
- Entity print plugin manager.
Namespace
Drupal\entity_print\PluginCode
public function getDisabledDefinitions($filter_export_type) {
if (!isset($this->disabledPrintEngines[$filter_export_type])) {
$this->disabledPrintEngines[$filter_export_type] = [];
foreach ($this
->getDefinitions() as $plugin_id => $definition) {
/** @var \Drupal\entity_print\Plugin\PrintEngineInterface $class */
$class = $definition['class'];
if ($definition['export_type'] === $filter_export_type && !$class::dependenciesAvailable()) {
$this->disabledPrintEngines[$filter_export_type][$plugin_id] = $definition;
}
}
}
return $this->disabledPrintEngines[$filter_export_type];
}