src/Model/Behavior/SluggableBehavior.php
public function beforeSave(Event $event, Entity $entity) {
        if(!$entity->get('slug') || $this->_config['overwrite'])
            $entity->set('slug', $this->slug($entity->get($this->_config['field'])));
    }
public function beforeSave(Event $event, Entity $entity) {
        if(!$entity->get('slug') || $this->_config['overwrite'])
            $entity->set('slug', $this->slug($entity->get($this->_config['field'])));
    }
public function beforeSave ( Event $ event , Entity $ entity ) { if ( ! $ entity -> get ( 'slug' ) || $ this -> _config [ 'overwrite' ] ) $ entity -> set ( 'slug' , $ this -> slug ( $ entity -> get ( $ this -> _config [ 'field' ] ) ) ) ; }
BeforeSave handle.
@param \Cake\Event\Event  $event The beforeSave event that was fired.
@param \Cake\ORM\Entity $entity The entity that is going to be saved.
@return void
BeforeSave handle .