/**
* Data provider for ::testDatetimeElementUntrustedCallbacks().
*
* @return string[][]
* Test cases.
*/
public function providerUntrusted() : array
{ return [ 'untrusted date' =>
[ 'datetimeDateCallback',
'datetimeTimeCallbackTrusted',
sprintf('DateTime element #date_date_callbacks callbacks must 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([static::
class, 'datetimeDateCallback'
])),
],
'untrusted time' =>
[ 'datetimeDateCallbackTrusted',
'datetimeTimeCallback',
sprintf('DateTime element #date_time_callbacks callbacks must 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([static::
class, 'datetimeTimeCallback'
])),
],
];
} /**
* Tests proper timezone handling of the Datetime element.
*/