function FieldLink::__construct
Constructs a \Drupal\Component\Plugin\PluginBase 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.
Overrides PluginBase::__construct
File
-
core/
modules/ link/ src/ Plugin/ migrate/ process/ FieldLink.php, line 48
Class
- FieldLink
- Transform a pre-Drupal 8 formatted link for use in Drupal 8.
Namespace
Drupal\link\Plugin\migrate\processCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration) {
@trigger_error(__CLASS__ . ' is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3533560', E_USER_DEPRECATED);
$configuration += [
'uri_scheme' => 'http://',
];
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.