Skip to the content
Documentation

is_production_system

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

Template operators for exposing the installation name to templates: {installation_name()} -> tap_a {installation_name( hide_on_prod=true() )} -> '' on production {is_production_system()} -> true / false

Description

Template operators for exposing the installation name to templates:

{installation_name()}                        -> tap_a
{installation_name( hide_on_prod=true() )}   -> '' on production
{is_production_system()}                     -> true / false

Source

Implemented by ExpInstallationOperator (kernel/classes/expinstallationoperator.php).

See also

Generated example: is_production_system

Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this operator.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.