yii\behaviors\SluggableBehavior::isNewSlugNeeded PHP Méthode

isNewSlugNeeded() protected méthode

You may override it to customize checking.
Since: 2.0.7
protected isNewSlugNeeded ( ) : boolean
Résultat 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;
    }