src/Easy/Element/Element.php
public function getContextMenu()
    {
        if (!$this->canDisplayed()) return null;
        $menus = array();
        $formObj = $this->getFormObj();
        if ($this->eventHandlers == null)
            return null;
        $i = 0;
        foreach ($this->eventHandlers as $eventHandler)
        {
            if ($eventHandler->contextMenu)
            {
                $menus[$i]['text'] = $eventHandler->contextMenu;
                $menus[$i]['func'] = $eventHandler->getFormedFunction();
                $menus[$i]['key']  = $eventHandler->shortcutKey;
            }
            $i++;
        }
        return $menus;
    }
public function getContextMenu()
    {
        if (!$this->canDisplayed()) return null;
        $menus = array();
        $formObj = $this->getFormObj();
        if ($this->eventHandlers == null)
            return null;
        $i = 0;
        foreach ($this->eventHandlers as $eventHandler)
        {
            if ($eventHandler->contextMenu)
            {
                $menus[$i]['text'] = $eventHandler->contextMenu;
                $menus[$i]['func'] = $eventHandler->getFormedFunction();
                $menus[$i]['key']  = $eventHandler->shortcutKey;
            }
            $i++;
        }
        return $menus;
    }
Get context menu

@return array