$this->condition->submitConfigurationForm($form, $form_state);
$config = $this->condition->getConfig();
foreach ($config['bundles'] as $bundle) {
- drupal_set_message('Bundle: ' . $bundle);
+ \Drupal::messenger()->addStatus('Bundle: ' . $bundle);
}
$article = Node::load(1);
$this->condition->setContextValue('node', $article);
if ($this->condition->execute()) {
- drupal_set_message(t('Executed successfully.'));
+ \Drupal::messenger()->addStatus(t('Executed successfully.'));
}
}