protected function _beforeEntityUpdate(AnCommandContext $context)
    {
        $entity = $context->entity;
        $modified = array_keys(AnConfig::unbox($entity->getModifiedData()));
        $modified = count(array_intersect($this->_modifiable_properties, $modified)) > 0;

        if ($modified && AnService::has('com:people.viewer')) {
            $entity->editor = get_viewer();
        }
    }
protected function _beforeEntityUpdate(AnCommandContext $context)
    {
        $entity = $context->entity;
        $modified = array_keys(AnConfig::unbox($entity->getModifiedData()));
        $modified = count(array_intersect($this->_modifiable_properties, $modified)) > 0;

        if ($modified && AnService::has('com:people.viewer')) {
            $entity->editor = get_viewer();
        }
    }
protected function _beforeEntityUpdate ( AnCommandContext $ context ) { $ entity = $ context -> entity ; $ modified = array_keys ( AnConfig :: unbox ( $ entity -> getModifiedData ( ) ) ) ; $ modified = count ( array_intersect ( $ this -> _modifiable_properties , $ modified ) ) > 0 ; if ( $ modified && AnService :: has ( 'com:people.viewer' ) ) { $ entity -> editor = get_viewer ( ) ; } }
Before Update timestamp modified on and modifier.

@param AnCommandContext $context Context parameter
Before Update timestamp modified on and modifier .