Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Custompath.php
Go to the documentation of this file.
1 <?php
13 
18 class Custompath extends \Magento\Framework\App\Config\Value
19 {
25  public function beforeSave()
26  {
27  if ($this->getOldValue() != $this->getValue()) {
28  $this->_registry->register('custom_admin_path_redirect', true, true);
29  }
30  return $this;
31  }
32 }