Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 5 |
NodeUpdate7008 | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 5 |
transform | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 5 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\node\Plugin\migrate\process\d6\NodeUpdate7008. | |
*/ | |
namespace Drupal\node\Plugin\migrate\process\d6; | |
use Drupal\migrate\MigrateExecutableInterface; | |
use Drupal\migrate\ProcessPluginBase; | |
use Drupal\migrate\Row; | |
/** | |
* Split the 'administer nodes' permission from 'access content overview'. | |
* | |
* @MigrateProcessPlugin( | |
* id = "node_update_7008" | |
* ) | |
*/ | |
class NodeUpdate7008 extends ProcessPluginBase { | |
/** | |
* {@inheritdoc} | |
* | |
* Split the 'administer nodes' permission from 'access content overview'. | |
*/ | |
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) { | |
if ($value === 'administer nodes') { | |
return array($value, 'access content overview'); | |
} | |
return $value; | |
} | |
} |