Issue #3266243 by mfb, longwave, catch: Views tries to call trigger_error() with E_WARNING which throws a ValueError

merge-requests/2977/head
catch 2022-11-18 10:47:10 +00:00
parent c9c2ee18a2
commit 76c529a6d5
3 changed files with 0 additions and 13 deletions

View File

@ -55,10 +55,6 @@ class Opml extends StylePluginBase {
* {@inheritdoc}
*/
public function render() {
if (empty($this->view->rowPlugin)) {
trigger_error('Drupal\views\Plugin\views\style\Opml: Missing row plugin', E_WARNING);
return [];
}
$rows = [];
foreach ($this->view->result as $row_index => $row) {

View File

@ -107,10 +107,6 @@ class Rss extends StylePluginBase {
}
public function render() {
if (empty($this->view->rowPlugin)) {
trigger_error('Drupal\views\Plugin\views\style\Rss: Missing row plugin', E_WARNING);
return [];
}
$rows = [];
// This will be filled in by the row plugin and is used later on in the

View File

@ -444,11 +444,6 @@ abstract class StylePluginBase extends PluginBase {
* Render the display in this style.
*/
public function render() {
if ($this->usesRowPlugin() && empty($this->view->rowPlugin)) {
trigger_error('Drupal\views\Plugin\views\style\StylePluginBase: Missing row plugin', E_WARNING);
return [];
}
// Group the rows according to the grouping instructions, if specified.
$sets = $this->renderGrouping(
$this->view->result,