public function DiffLayoutBase::__construct in Diff 8
Constructs a DiffLayoutBase 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.
Overrides PluginBase::__construct
3 calls to DiffLayoutBase::__construct()
- SplitFieldsDiffLayout::__construct in src/
Plugin/ diff/ Layout/ SplitFieldsDiffLayout.php - Constructs a SplitFieldsDiffLayout object.
- UnifiedFieldsDiffLayout::__construct in src/
Plugin/ diff/ Layout/ UnifiedFieldsDiffLayout.php - Constructs a UnifiedFieldsDiffLayout object.
- VisualInlineDiffLayout::__construct in src/
Plugin/ diff/ Layout/ VisualInlineDiffLayout.php - Constructs a VisualInlineDiffLayout object.
3 methods override DiffLayoutBase::__construct()
- SplitFieldsDiffLayout::__construct in src/
Plugin/ diff/ Layout/ SplitFieldsDiffLayout.php - Constructs a SplitFieldsDiffLayout object.
- UnifiedFieldsDiffLayout::__construct in src/
Plugin/ diff/ Layout/ UnifiedFieldsDiffLayout.php - Constructs a UnifiedFieldsDiffLayout object.
- VisualInlineDiffLayout::__construct in src/
Plugin/ diff/ Layout/ VisualInlineDiffLayout.php - Constructs a VisualInlineDiffLayout object.
File
- src/
DiffLayoutBase.php, line 75
Class
- DiffLayoutBase
- Base class for diff layout plugins.
Namespace
Drupal\diffCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config, EntityTypeManagerInterface $entity_type_manager, DiffEntityParser $entity_parser, DateFormatter $date) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->configFactory = $config;
$this->entityTypeManager = $entity_type_manager;
$this->entityParser = $entity_parser;
$this->date = $date;
$this->configuration += $this
->defaultConfiguration();
}