public function DiffFormatter::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Diff/DiffFormatter.php \Drupal\Core\Diff\DiffFormatter::__construct()
Creates a DiffFormatter to render diffs in a table.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
File
- core/
lib/ Drupal/ Core/ Diff/ DiffFormatter.php, line 43 - Contains \Drupal\Core\Diff\DiffFormatter.
Class
- DiffFormatter
- Diff formatter which uses returns output that can be rendered to a table.
Namespace
Drupal\Core\DiffCode
public function __construct(ConfigFactoryInterface $config_factory) {
$config = $config_factory
->get('system.diff');
$this->leading_context_lines = $config
->get('context.lines_leading');
$this->trailing_context_lines = $config
->get('context.lines_trailing');
}