Skip to content
Snippets Groups Projects
Commit 8e85bcca authored by André Matheus Pedrosa's avatar André Matheus Pedrosa Committed by Dipak Yadav
Browse files

Issue #3254756 by andregp, kuralarasanm, dipakmdhrm, Johnny Santos,...

Issue #3254756 by andregp, kuralarasanm, dipakmdhrm, Johnny Santos, WagnerMelo, marcusvsouza: Deprecated: Required parameter $context follows optional parameter $nodes
parent 4a089b6d
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ use Drupal\node\Entity\Node;
* @param mixed &$context
* Sandbox context array.
*/
function delete_all_content_batch_delete(array $nodes = NULL, &$context) {
function delete_all_content_batch_delete(array $nodes, &$context) {
$db = \Drupal::database();
// Initialize sandbox.
......
......@@ -15,7 +15,7 @@
* @param mixed &$context
* Sandbox context array.
*/
function delete_all_entities_batch_delete(array $entities = NULL, $entity_type, &$context) {
function delete_all_entities_batch_delete(array $entities, $entity_type, &$context) {
if (!isset($context['sandbox']['progress'])) {
$context['sandbox']['progress'] = 0;
$context['sandbox']['max'] = count($entities);
......
......@@ -13,7 +13,7 @@
* @param mixed &$context
* Sandbox context array.
*/
function delete_all_users_batch_delete(array $users = NULL, &$context) {
function delete_all_users_batch_delete(array $users, &$context) {
$db = \Drupal::database();
$entity_type_manager = \Drupal::entityTypeManager();
......
......@@ -53,7 +53,7 @@ class EntityDeleteController extends DeleteControllerBase {
* @return array
* Batch definition.
*/
public function getEntitiesDeleteBatch(array $entities_to_delete = NULL, $entity_type) {
public function getEntitiesDeleteBatch(array $entities_to_delete, $entity_type) {
// Define batch.
$batch = [
'operations' => [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment