public function DiffLayoutManager::findDefinitions in Diff 8
Finds plugin definitions.
Return value
array List of definitions to store in cache.
Overrides DefaultPluginManager::findDefinitions
File
- src/
DiffLayoutManager.php, line 108
Class
- DiffLayoutManager
- Plugin type manager for field diff builders.
Namespace
Drupal\diffCode
public function findDefinitions() {
$definitions = parent::findDefinitions();
// Remove plugin html_diff if library is not present.
$has_htmlDiffAdvanced = class_exists('\\HtmlDiffAdvanced');
if (!$has_htmlDiffAdvanced) {
unset($definitions['visual_inline']);
}
return $definitions;
}