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();
}