123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Backend\Model;
- /**
- * @api
- * @since 100.0.2
- */
- interface UrlInterface extends \Magento\Framework\UrlInterface
- {
- /**
- * Secret key query param name
- */
- const SECRET_KEY_PARAM_NAME = 'key';
- /**
- * xpath to startup page in configuration
- */
- const XML_PATH_STARTUP_MENU_ITEM = 'admin/startup/menu_item_id';
- /**
- * Generate secret key for controller and action based on form key
- *
- * @param string $routeName
- * @param string $controller Controller name
- * @param string $action Action name
- * @return string
- */
- public function getSecretKey($routeName = null, $controller = null, $action = null);
- /**
- * Return secret key settings flag
- *
- * @return bool
- */
- public function useSecretKey();
- /**
- * Enable secret key using
- *
- * @return \Magento\Backend\Model\UrlInterface
- */
- public function turnOnSecretKey();
- /**
- * Disable secret key using
- *
- * @return \Magento\Backend\Model\UrlInterface
- */
- public function turnOffSecretKey();
- /**
- * Refresh admin menu cache etc.
- *
- * @return \Magento\Backend\Model\UrlInterface
- */
- public function renewSecretUrls();
- /**
- * Find admin start page url
- *
- * @return string
- */
- public function getStartupPageUrl();
- /**
- * Set custom auth session
- *
- * @param \Magento\Backend\Model\Auth\Session $session
- * @return \Magento\Backend\Model\UrlInterface
- */
- public function setSession(\Magento\Backend\Model\Auth\Session $session);
- /**
- * Return backend area front name, defined in configuration
- *
- * @return string
- */
- public function getAreaFrontName();
- /**
- * Find first menu item that user is able to access
- *
- * @return string
- */
- public function findFirstAvailableMenu();
- }
|