resolver = $resolver; } /** * @param $configKey * @param $crudName * @param null $action * * @return string */ public function getConfig($configKey, $crudName, $action = null) { return $this->resolver->getConfigValue($configKey, $crudName, $action); } /** * @return array|TwigFunction[] */ public function getFunctions() { return [ new TwigFunction( 'chill_crud_config', [$this, 'getConfig'], ['is_safe' => 'html'] ), new TwigFunction( 'chill_crud_action_exists', [$this, 'hasAction'], [] ), ]; } /** * @param $crudName * @param $action * * @return bool */ public function hasAction($crudName, $action) { return $this->resolver->hasAction($crudName, $action); } }