public function UnifiedFieldsDiffLayout::__construct in Diff 8
Constructs a UnifiedFieldsDiffLayout object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Config\ConfigFactoryInterface $config: The configuration factory object.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\diff\DiffEntityParser $entity_parser: The entity parser.
\Drupal\Core\DateTime\DateFormatter $date: The date service.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
\Drupal\diff\DiffEntityComparison $entity_comparison: The diff entity comparison service.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
Overrides DiffLayoutBase::__construct
File
- src/
Plugin/ diff/ Layout/ UnifiedFieldsDiffLayout.php, line 73
Class
- UnifiedFieldsDiffLayout
- Provides Unified fields diff layout.
Namespace
Drupal\diff\Plugin\diff\LayoutCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config, EntityTypeManagerInterface $entity_type_manager, DiffEntityParser $entity_parser, DateFormatter $date, RendererInterface $renderer, DiffEntityComparison $entity_comparison, RequestStack $request_stack) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $config, $entity_type_manager, $entity_parser, $date);
$this->renderer = $renderer;
$this->entityComparison = $entity_comparison;
$this->requestStack = $request_stack;
}