You are here

public function MenuLinkContentService::doBundleFieldUpdate in Menu Item Extras 8.2

Runs bundle field dtorage definition updates for menu_link_content entity.

File

src/Service/MenuLinkContentService.php, line 224

Class

MenuLinkContentService
Class MenuLinkContentHelper.

Namespace

Drupal\menu_item_extras\Service

Code

public function doBundleFieldUpdate() {
  $entity_type = $this->entityTypeManager
    ->getDefinition('menu_link_content');
  $this->entityDefinitionUpdateManager
    ->updateFieldStorageDefinition($this->entityDefinitionUpdateManager
    ->getFieldStorageDefinition('bundle', $entity_type
    ->id()));
}