public function getGrids($dataContainer)
    {
        if ($dataContainer->activeRecord) {
            $dispatcher = $GLOBALS['container']['event-dispatcher'];
            $event      = new GetGridsEvent($dataContainer->activeRecord);
            $dispatcher->dispatch(GetGridsEvent::NAME, $event);

            return $event->getGrids()->getArrayCopy();
        }

        return array();
    }
public function getGrids($dataContainer)
    {
        if ($dataContainer->activeRecord) {
            $dispatcher = $GLOBALS['container']['event-dispatcher'];
            $event      = new GetGridsEvent($dataContainer->activeRecord);
            $dispatcher->dispatch(GetGridsEvent::NAME, $event);

            return $event->getGrids()->getArrayCopy();
        }

        return array();
    }
public function getGrids ( $ dataContainer ) { if ( $ dataContainer -> activeRecord ) { $ dispatcher = $ GLOBALS [ 'container' ] [ 'event-dispatcher' ] ; $ event = new GetGridsEvent ( $ dataContainer -> activeRecord ) ; $ dispatcher -> dispatch ( GetGridsEvent :: NAME , $ event ) ; return $ event -> getGrids ( ) -> getArrayCopy ( ) ; } return array ( ) ; }
Get grids.

@param \DataContainer $dataContainer The data container driver.

@return array

@SuppressWarnings(PHPMD.Superglobals)
Get grids .