projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
modules
/
field
/
tests
/
modules
/
field_test
/
field_test.module
diff --git
a/web/core/modules/field/tests/modules/field_test/field_test.module
b/web/core/modules/field/tests/modules/field_test/field_test.module
index 1d7e2d6312d399783fbc856bd8c2c5d553d2b7a3..2c827c2def3fcdd63fd99d69d3c8f30626be61c6 100644
(file)
--- a/
web/core/modules/field/tests/modules/field_test/field_test.module
+++ b/
web/core/modules/field/tests/modules/field_test/field_test.module
@@
-104,7
+104,8
@@
function field_test_field_widget_form_alter(&$element, FormStateInterface $form_
// Set a message if this is for the form displayed to set default value for
// the field.
if ($context['default']) {
// Set a message if this is for the form displayed to set default value for
// the field.
if ($context['default']) {
- drupal_set_message('From hook_field_widget_form_alter(): Default form is true.');
+ \Drupal::messenger()
+ ->addStatus('From hook_field_widget_form_alter(): Default form is true.');
}
}
}
}
@@
-129,7
+130,6
@@
function field_test_field_widget_multivalue_test_field_widget_multiple_single_va
_field_test_alter_widget("hook_field_widget_multivalue_WIDGET_TYPE_form_alter", $elements, $form_state, $context);
}
_field_test_alter_widget("hook_field_widget_multivalue_WIDGET_TYPE_form_alter", $elements, $form_state, $context);
}
-
/**
* Sets up alterations for widget alter tests.
*
/**
* Sets up alterations for widget alter tests.
*
@@
-140,7
+140,7
@@
function _field_test_alter_widget($hook, array &$elements, FormStateInterface $f
// Set a message if this is for the form displayed to set default value for
// the field.
if ($context['default']) {
// Set a message if this is for the form displayed to set default value for
// the field.
if ($context['default']) {
-
drupal_set_message
("From $hook(): Default form is true.");
+
\Drupal::messenger()->addStatus
("From $hook(): Default form is true.");
}
$alter_info = \Drupal::state()->get("field_test.widget_alter_test");
$name = $context['items']->getFieldDefinition()->getName();
}
$alter_info = \Drupal::state()->get("field_test.widget_alter_test");
$name = $context['items']->getFieldDefinition()->getName();
@@
-163,7
+163,6
@@
function field_test_query_efq_table_prefixing_test_alter(&$query) {
$query->join('entity_test', 'et2', '%alias.id = entity_test.id');
}
$query->join('entity_test', 'et2', '%alias.id = entity_test.id');
}
-
/**
* Implements hook_query_TAG_alter() for tag 'efq_metadata_test'.
*
/**
* Implements hook_query_TAG_alter() for tag 'efq_metadata_test'.
*