Same filename and directory in other branches
  1. 8.9.x core/modules/node/src/Plugin/migrate/process/d6/NodeUpdate7008.php
  2. 9 core/modules/node/src/Plugin/migrate/process/d6/NodeUpdate7008.php

Namespace

Drupal\node\Plugin\migrate\process\d6

File

core/modules/node/src/Plugin/migrate/process/d6/NodeUpdate7008.php
View source
<?php

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 [
        $value,
        'access content overview',
      ];
    }
    return $value;
  }

}

Classes

Namesort descending Description
NodeUpdate7008 Split the 'administer nodes' permission from 'access content overview'.