Admin_ElementController::getIdPathAction PHP Метод

getIdPathAction() публичный Метод

public getIdPathAction ( )
    public function getIdPathAction()
    {
        $id = (int) $this->getParam("id");
        $type = $this->getParam("type");
        $response = ["success" => true];
        if ($element = Element\Service::getElementById($type, $id)) {
            $response["idPath"] = Element\Service::getIdPath($element);
        }
        $this->_helper->json($response);
    }