You are here

public function HookFieldAttachDeleteBundle::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/HookFieldAttachDeleteBundle.php, line 29

Class

HookFieldAttachDeleteBundle
Plugin annotation @Converter( id = "hook_field_attach_delete_bundle", description = @Translation("Adds a FIXME notice to hook_field_attach_delete_bundle()."), hook = "hook_field_attach_delete_bundle", fixme =…

Namespace

Drupal\drupalmoduleupgrader\Plugin\DMU\Converter

Code

public function convert(TargetInterface $target) {
  $hook = $target
    ->getIndexer('function')
    ->get($this->pluginDefinition['hook'])
    ->before(DocCommentNode::create($this->pluginDefinition['fixme']));
  $target
    ->save($hook);
}