Twig Components / Methods / config
config = object(Bolt\Configuration\Config)
is a Twig global to be used to access the
configuration available in your config.yaml and contenttypes.yaml files. It has a bunch of useful methods.
get(path)¶
Returns a config value using a path
has(path)¶
Returns true if config matches path, and false otherwise.
contentType(contenttype)¶
Returns the configuration for the given contenttype.
Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.