public function Notify::execute in Drupal 7 to 8/9 Module Upgrader 8
Executes the plugin.
Overrides ExecutableInterface::execute
1 call to Notify::execute()
- Disable::execute in src/
Plugin/ DMU/ Fixer/ Disable.php - Executes the plugin.
1 method overrides Notify::execute()
- Disable::execute in src/
Plugin/ DMU/ Fixer/ Disable.php - Executes the plugin.
File
- src/
Plugin/ DMU/ Fixer/ Notify.php, line 22
Class
- Notify
- Plugin annotation @Fixer( id = "notify" )
Namespace
Drupal\drupalmoduleupgrader\Plugin\DMU\FixerCode
public function execute() {
foreach ($this
->getObjects() as $node) {
$comment = $this
->getComment($node);
if ($comment) {
$comment .= "\n\n";
}
$this
->setComment($node, $comment . $this->configuration['note']);
}
$this->target
->save();
}