Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

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\Attribute\MigrateProcess;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;

/**
 * Split the 'administer nodes' permission from 'access content overview'.
 */
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

Title Deprecated Summary
NodeUpdate7008 Split the 'administer nodes' permission from 'access content overview'.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal