NodeUpdate7008.php
Same filename and directory in other branches
Namespace
Drupal\node\Plugin\migrate\process\d6File
-
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'.
*
* @deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3533560
*/
class NodeUpdate7008 extends ProcessPluginBase {
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
@trigger_error(__CLASS__ . ' is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3533560', E_USER_DEPRECATED);
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
/**
* {@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 | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
Split the 'administer nodes' permission from 'access content overview'. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.