public static function isAttributeChanged(Event $event, $attribute)
    {
        /** @var ActiveRecord $sender */
        $sender = $event->sender;
        if (!isset($event->changedAttributes)) {
            return $sender->isAttributeChanged($attribute);
        }
        return isset($event->changedAttributes[$attribute]);
    }
public static function isAttributeChanged(Event $event, $attribute)
    {
        /** @var ActiveRecord $sender */
        $sender = $event->sender;
        if (!isset($event->changedAttributes)) {
            return $sender->isAttributeChanged($attribute);
        }
        return isset($event->changedAttributes[$attribute]);
    }
public static function isAttributeChanged ( Event $ event , $ attribute ) { /** @var ActiveRecord $sender */ $ sender = $ event -> sender ; if ( ! isset ( $ event -> changedAttributes ) ) { return $ sender -> isAttributeChanged ( $ attribute ) ; } return isset ( $ event -> changedAttributes [ $ attribute ] ) ; }
Checks whether event sender attribute is changed.
@param Event $event
@param $attribute
@return bool
Checks whether event sender attribute is changed .