public function FieldInstance::allowBundleRename

Allows a bundle to be renamed.

Renaming a bundle on the instance is allowed when an entity's bundle is renamed and when field_entity_bundle_rename() does internal housekeeping.

Overrides FieldInstanceInterface::allowBundleRename

File

drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php, line 501
Contains \Drupal\field\Plugin\Core\Entity\FieldInstance.

Class

FieldInstance
Defines the Field instance entity.

Namespace

Drupal\field\Plugin\Core\Entity

Code

public function allowBundleRename() {
  $this->bundle_rename_allowed = TRUE;
}