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

Breadcrumb

  1. Drupal Core 11.1.x
  2. NodeUpdate7008.php

function NodeUpdate7008::transform

Split the 'administer nodes' permission from 'access content overview'.

Overrides ProcessPluginBase::transform

File

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

Class

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

Namespace

Drupal\node\Plugin\migrate\process\d6

Code

public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
    if ($value === 'administer nodes') {
        return [
            $value,
            'access content overview',
        ];
    }
    return $value;
}

API Navigation

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