diff --git a/core/lib/Drupal/Core/TypedData/TypedData.php b/core/lib/Drupal/Core/TypedData/TypedData.php index d87b99c..97e7825 100644 --- a/core/lib/Drupal/Core/TypedData/TypedData.php +++ b/core/lib/Drupal/Core/TypedData/TypedData.php @@ -81,10 +81,12 @@ public function __construct($definition, $name = NULL, TypedDataInterface $paren * * @param \Symfony\Component\DependencyInjection\ContainerInterface $container * The container to pull out services used in the plugin. - * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition - * The data definition. - * @param string $name - * (optional) The name of the created property, or NULL if it is the root + * @param array $configuration + * A configuration array containing information about the plugin instance. + * @param string $plugin_id + * The plugin ID for the plugin instance. + * @param array $plugin_definition + * The plugin implementation definition. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. @@ -92,12 +94,12 @@ public function __construct($definition, $name = NULL, TypedDataInterface $paren * @return static * Returns an instance of this plugin. */ - public static function create(ContainerInterface $container, $definition, $name = NULL, TypedDataInterface $parent = NULL) { + public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, TypedDataInterface $parent = NULL) { return new static( - $definition, - $name, + $plugin_definition, + $plugin_id, $parent, - $container->get('typed_data') + $container->get('typed_data_manager') ); }