Skip to content

Instantly share code, notes, and snippets.

@Oleksii909
Created November 14, 2020 09:55
Show Gist options
  • Save Oleksii909/f131cd143975bdf8d5551c1301a7e430 to your computer and use it in GitHub Desktop.
Save Oleksii909/f131cd143975bdf8d5551c1301a7e430 to your computer and use it in GitHub Desktop.
<?php
/**
* {@inheritdoc}
*/
protected function assertEntityInstanceFieldMarkup($expected_field_attributes) {
if (func_num_args() === 4) {
$expected_field_attributes = func_get_arg(3);
@trigger_error('Calling ' . __METHOD__ . '() with 4 arguments is deprecated in drupal:9.1.0 and will throw an error in drupal:10.0.0. See https://www.drupal.org/project/drupal/issues/3037436', E_USER_DEPRECATED);
}
parent::assertEntityInstanceFieldMarkup($this->replaceLayoutBuilderFieldIdKeys($expected_field_attributes));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment