Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Filename.php
Go to the documentation of this file.
1 <?php
7 
12 class Filename extends \Magento\Framework\App\Config\Value
13 {
17  public function beforeSave()
18  {
19  $value = $this->getValue();
20  $value = basename($value);
21  $this->setValue($value);
22  return $this;
23  }
24 }
$value
Definition: gender.phtml:16