Added mention of TrustedCallback attribute to error message.
Open
requested to merge issue/drupal-3436803:3436803-render-callback-error-message-attributes into 11.x
Compare changes
@@ -265,7 +265,7 @@ public static function processDatelist(&$element, FormStateInterface $form_state
$message = sprintf('Datelist element #date_date_callbacks callbacks must be methods with the Drupal\Core\Security\Attribute\TrustedCallback attribute, or be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface, or be an anonymous function. The callback was %s. See https://www.drupal.org/node/3217966', Variable::callableToString($callback));