@trigger_error(sprintf('The executeMultiple method of the %s class must return an array of \Drupal\Component\Render\MarkupInterface, other return types are deprecated.',E_USER_DEPRECATED));
@trigger_error(sprintf('The executeMultiple method of the %s class must return either an array of \Drupal\Component\Render\MarkupInterface or an array of arrays containing "message" (\Drupal\Component\Render\MarkupInterface) and "type" (string), other return types are deprecated.',E_USER_DEPRECATED));
}
// @todo Don't delete the following when removing deprecated code.
foreach($resultsas&$result){
if(!is_array($result)){
$result=[
'message'=>$result,
];
}
if(!array_key_exists('message',$result)){
thrownew\Exception(sprintf('Result message not provided by the %s action.',$this->action->id()));