MetaModels\DcGeneral\Events\Table\FilterSetting\Subscriber::getMetaModel PHP Method

getMetaModel() public method

Retrieve the MetaModel attached to the model filter setting.
public getMetaModel ( ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model ) : MetaModels\IMetaModel
$model ContaoCommunityAlliance\DcGeneral\Data\ModelInterface The model for which to retrieve the MetaModel.
return MetaModels\IMetaModel
    public function getMetaModel(ModelInterface $model)
    {
        $filterSetting = $this->getServiceContainer()->getFilterFactory()->createCollection($model->getProperty('fid'));
        return $filterSetting->getMetaModel();
    }