src/Models/CmsModel.php
public function getCmsReferenceFieldId($relation)
    {
        if (    ! array_key_exists($relation, $this->relationsConfig)
            ||  ! array_key_exists('field', $this->relationsConfig[$relation])
        ) {
            return null;
        }

        return (int) $this->relationsConfig[ $relation ]['field'];
    }
public function getCmsReferenceFieldId($relation)
    {
        if (    ! array_key_exists($relation, $this->relationsConfig)
            ||  ! array_key_exists('field', $this->relationsConfig[$relation])
        ) {
            return null;
        }

        return (int) $this->relationsConfig[ $relation ]['field'];
    }
public function getCmsReferenceFieldId ( $ relation ) { if ( ! array_key_exists ( $ relation , $ this -> relationsConfig ) || ! array_key_exists ( 'field' , $ this -> relationsConfig [ $ relation ] ) ) { return null ; } return ( int ) $ this -> relationsConfig [ $ relation ] [ 'field' ] ; }
Returns the configured 'from_field_id' field id value for the reference relation

@param string $relation
@return int|null
Returns the configured from_field_id field id value for the reference relation