MetaModels\Filter\Setting\SimpleLookup::getFilteredAttribute PHP Method

getFilteredAttribute() protected method

Retrieve the attribute we are filtering on.
protected getFilteredAttribute ( ) : MetaModels\Attribute\IAttribute | null
return MetaModels\Attribute\IAttribute | null
    protected function getFilteredAttribute()
    {
        if (!($attributeId = $this->get('attr_id'))) {
            return null;
        }
        if ($attribute = $this->getMetaModel()->getAttributeById($attributeId)) {
            return $attribute;
        }
        return null;
    }