You are here

protected property DrupalMessageSet::$messengers in Drupal 7 to 8/9 Module Upgrader 8

Array to generate services for drupal_set_messages.

Type: arraymessengers

File

src/Plugin/DMU/Converter/Functions/DrupalMessageSet.php, line 22

Class

DrupalMessageSet
Plugin annotation @Converter( id = "drupal_set_message", description = @Translation("Rewrites calls to drupal_set_message()."), )

Namespace

Drupal\drupalmoduleupgrader\Plugin\DMU\Converter\Functions

Code

protected $messengers = [
  'custom' => 'addMessage',
  'error' => 'addError',
  'status' => 'addStatus',
  'warning' => 'addWarning',
];