public function getElementID()
    {
        $id = $this->dataPanel->getByField('Id')->getValue();
        if ($id) {
            return (int) $id;
        } else {
            return (int) $this->recordId;
        }
    }
public function getElementID()
    {
        $id = $this->dataPanel->getByField('Id')->getValue();
        if ($id) {
            return (int) $id;
        } else {
            return (int) $this->recordId;
        }
    }
public function getElementID ( ) { $ id = $ this -> dataPanel -> getByField ( 'Id' ) -> getValue ( ) ; if ( $ id ) { return ( int ) $ id ; } else { return ( int ) $ this -> recordId ; } }
Get element Id

@return mixed
Get element Id