Issue #3266243 by mfb, longwave, catch: Views tries to call trigger_error() with E_WARNING which throws a ValueError
(cherry picked from commit 76c529a6d5
)
merge-requests/2034/merge
parent
7715163310
commit
f5b86d3f13
|
@ -55,10 +55,6 @@ class Opml extends StylePluginBase {
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function render() {
|
public function render() {
|
||||||
if (empty($this->view->rowPlugin)) {
|
|
||||||
trigger_error('Drupal\views\Plugin\views\style\Opml: Missing row plugin', E_WARNING);
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
$rows = [];
|
$rows = [];
|
||||||
|
|
||||||
foreach ($this->view->result as $row_index => $row) {
|
foreach ($this->view->result as $row_index => $row) {
|
||||||
|
|
|
@ -107,10 +107,6 @@ class Rss extends StylePluginBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
if (empty($this->view->rowPlugin)) {
|
|
||||||
trigger_error('Drupal\views\Plugin\views\style\Rss: Missing row plugin', E_WARNING);
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
$rows = [];
|
$rows = [];
|
||||||
|
|
||||||
// This will be filled in by the row plugin and is used later on in the
|
// 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.
|
* Render the display in this style.
|
||||||
*/
|
*/
|
||||||
public function render() {
|
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.
|
// Group the rows according to the grouping instructions, if specified.
|
||||||
$sets = $this->renderGrouping(
|
$sets = $this->renderGrouping(
|
||||||
$this->view->result,
|
$this->view->result,
|
||||||
|
|
Loading…
Reference in New Issue