public function HookFieldAttachRenameBundle::convert in Drupal 7 to 8/9 Module Upgrader 8
Performs required conversions.
Parameters
TargetInterface $target: The target module to convert.
Overrides ConverterInterface::convert
File
- src/
Plugin/ DMU/ Converter/ HookFieldAttachRenameBundle.php, line 20
Class
- HookFieldAttachRenameBundle
- Plugin annotation @Converter( id = "hook_field_attach_rename_bundle", description = @Translation("Renames hook_field_attach_rename_bundle()."), hook = "hook_field_attach_rename_bundle" )
Namespace
Drupal\drupalmoduleupgrader\Plugin\DMU\ConverterCode
public function convert(TargetInterface $target) {
$hook = $target
->getIndexer('function')
->get($this->pluginDefinition['hook'])
->setName($target
->id() . '_entity_bundle_rename');
$target
->save($hook);
}