Issue #3266243 by mfb, longwave, catch: Views tries to call trigger_error() with E_WARNING which throws a ValueError
parent
c9c2ee18a2
commit
76c529a6d5
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue