src/Event/Model/WidgetsListener.php
public function getWidgets(Event $event): void
    {
        $result = array_merge(
            (array)$event->result,
            $this->getSavedSearchWidgets(),
            $this->getReportWidgets(),
            $this->getAppWidgets()
        );

        $event->result = array_filter($result);
    }
public function getWidgets(Event $event): void
    {
        $result = array_merge(
            (array)$event->result,
            $this->getSavedSearchWidgets(),
            $this->getReportWidgets(),
            $this->getAppWidgets()
        );

        $event->result = array_filter($result);
    }
public function getWidgets ( Event $ event ) : void { $ result = array_merge ( ( array ) $ event -> result , $ this -> getSavedSearchWidgets ( ) , $ this -> getReportWidgets ( ) , $ this -> getAppWidgets ( ) ) ; $ event -> result = array_filter ( $ result ) ; }
Add widgets for Search plugin's Dashboards.

@param \Cake\Event\Event $event Event instance
@return void
Add widgets for Search plugin s Dashboards .