/** * 2016-05-21 * How to get an order backend URL programmatically? https://mage2.pro/t/1639 * 2016-05-22 * Даже если включена опция «Add Secret Key to URLs», адреса без ключей всё равно работают. * https://mage2.pro/tags/backend-url-secret-key * How to skip adding the secret key to a backend URL using the «_nosecret» parameter? * https://mage2.pro/t/1644 * 2016-08-24 * @see df_customer_backend_url() * @see df_cm_backend_url() * @param O|int $o * @return string */ function df_order_backend_url($o) { return df_url_backend_ns('sales/order/view', ['order_id' => df_idn($o)]); }
/** * 2016-05-21 * @see df_order_backend_url() * @param CM|int $cm * @return string */ function df_cm_backend_url($cm) { return df_url_backend_ns('sales/order_creditmemo/view', ['creditmemo_id' => df_idn($cm)]); }
/** * 2016-08-24 * By analogy with @see \Magento\Backend\Block\Dashboard\Tab\Customers\Newest::getRowUrl() * @see df_order_backend_url() * @see df_cm_backend_url() * @param C|int|null $c * @return string|null */ function df_customer_backend_url($c) { return !$c ? null : df_url_backend_ns('customer/index/edit', ['id' => df_idn($c)]); }