Craft\Neo_BlockModel::getOwner PHP Method

getOwner() public method

Returns the element that this block belongs as a field value to.
public getOwner ( ) : craft\BaseElementModel | null
return craft\BaseElementModel | null
    public function getOwner()
    {
        if (!isset($this->_owner) && $this->ownerId) {
            $this->_owner = craft()->elements->getElementById($this->ownerId, null, $this->locale);
            if (!$this->_owner) {
                $this->_owner = false;
            }
        }
        return $this->_owner ? $this->_owner : null;
    }