public function NameFieldBuilder::__construct in Name Field 8
Constructs a Name Field diff builder instance.
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\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\diff\DiffEntityParser $entity_parser: The entity parser.
\Drupal\name\NameFormatterInterface $formatter: The name formatter.
Overrides FieldDiffBuilderBase::__construct
File
- src/
Plugin/ diff/ Field/ NameFieldBuilder.php, line 49
Class
- NameFieldBuilder
- Plugin to diff text fields.
Namespace
Drupal\name\Plugin\diff\FieldCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, DiffEntityParser $entity_parser, NameFormatterInterface $formatter) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $entity_parser);
$this->formatter = $formatter;
}