yii\behaviors\SluggableBehavior::isNewSlugNeeded PHP Method

isNewSlugNeeded() protected method

You may override it to customize checking.
Since: 2.0.7
protected isNewSlugNeeded ( ) : boolean
return boolean
    protected function isNewSlugNeeded()
    {
        if (empty($this->owner->{$this->slugAttribute})) {
            return true;
        }
        if ($this->immutable) {
            return false;
        }
        foreach ((array) $this->attribute as $attribute) {
            if ($this->owner->isAttributeChanged($attribute)) {
                return true;
            }
        }
        return false;
    }