diff --git a/core/modules/field/lib/Drupal/field/Entity/FieldConfig.php b/core/modules/field/lib/Drupal/field/Entity/FieldConfig.php index 522264a..1b8b5bc 100644 --- a/core/modules/field/lib/Drupal/field/Entity/FieldConfig.php +++ b/core/modules/field/lib/Drupal/field/Entity/FieldConfig.php @@ -588,6 +588,19 @@ public function getProvider() { } /** + * Sets the name of the provider of this field. + * + * @param string $provider + * The provider name. + * + * @return static + * The object itself for chaining. + */ + public function setProvider($provider) { + // Do nothing: provider is readonly property. + } + + /** * {@inheritdoc} */ public function getLabel() { diff --git a/core/modules/field/lib/Drupal/field/Entity/FieldInstanceConfig.php b/core/modules/field/lib/Drupal/field/Entity/FieldInstanceConfig.php index 73a0845..65f6c76 100644 --- a/core/modules/field/lib/Drupal/field/Entity/FieldInstanceConfig.php +++ b/core/modules/field/lib/Drupal/field/Entity/FieldInstanceConfig.php @@ -506,6 +506,19 @@ public function getProvider() { } /** + * Sets the name of the provider of this field. + * + * @param string $provider + * The provider name. + * + * @return static + * The object itself for chaining. + */ + public function setProvider($provider) { + $this->field->setProvider($provider); + } + + /** * {@inheritdoc} */ public function isTranslatable() {