function hook_message_ui_multiple_message_delete_query_alter in Message UI 8
Altering the query object when deleting multiple message when using the form.
Parameters
\Drupal\Core\Entity\Query\QueryInterface $query: The query object.
1 invocation of hook_message_ui_multiple_message_delete_query_alter()
- MessageMultipleDeleteForm::submitForm in src/
Form/ MessageMultipleDeleteForm.php - Form submission handler.
File
- ./
message_ui.api.php, line 65 - Defining the API part of the Message UI module.
Namespace
Drupal\message_uiCode
function hook_message_ui_multiple_message_delete_query_alter(QueryInterface $query) {
$query
->condition('field_node_ref.target_id', 22);
}