Same name and namespace in other branches
  1. 8.9.x core/modules/node/src/Plugin/migrate/process/d6/NodeUpdate7008.php \Drupal\node\Plugin\migrate\process\d6\NodeUpdate7008
  2. 9 core/modules/node/src/Plugin/migrate/process/d6/NodeUpdate7008.php \Drupal\node\Plugin\migrate\process\d6\NodeUpdate7008

Hierarchy

  • class \Drupal\node\Plugin\migrate\process\d6\NodeUpdate7008 extends \Drupal\migrate\ProcessPluginBase

Expanded class hierarchy of NodeUpdate7008

File

core/modules/node/src/Plugin/migrate/process/d6/NodeUpdate7008.php, line 14

Namespace

Drupal\node\Plugin\migrate\process\d6
View source
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 [
        $value,
        'access content overview',
      ];
    }
    return $value;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
NodeUpdate7008::transform public function Split the 'administer nodes' permission from 'access content overview'.