DiffFormatter.php in Diff 8        
                          
                  
                        
  
  
  
  
  
File
  src/DiffFormatter.php
  
    View source  
  <?php
namespace Drupal\diff;
use Drupal\Core\Diff\DiffFormatter as CoreDiffFormatterBase;
use Drupal\Core\Config\ConfigFactoryInterface;
class DiffFormatter extends CoreDiffFormatterBase {
  
  public function __construct(ConfigFactoryInterface $config_factory) {
    parent::__construct($config_factory);
    $config = $config_factory
      ->get('diff.settings');
    $this->leading_context_lines = $config
      ->get('general_settings.context_lines_leading');
    $this->trailing_context_lines = $config
      ->get('general_settings.context_lines_trailing');
  }
}
 
Classes
        
  
  
      
      
         
      
                  | Name   | Description | 
    
    
          
                  | DiffFormatter | Diff formatter which returns output that can be rendered to a table. |