\Drupflare\Anachron\Drupal Switches

The opt-in switches a legacy site turns on.

Every one is off unless the site sets it, either in $settings or in $GLOBALS['conf'], which a library can set before settings load.

Summary

Methods
Properties
Constants
on
No public properties found
IGNORE_CORE_REQUIREMENT
LEGACY_FIELD_ACCESS
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Constant

IGNORE_CORE_REQUIREMENT

IGNORE_CORE_REQUIREMENT = 'anachron_ignore_core_requirement'

LEGACY_FIELD_ACCESS

LEGACY_FIELD_ACCESS = 'anachron_legacy_field_access'

Methods

on()

on(string  $name) : bool

Tells whether a switch is on.

Parameters

string $name

The switch key.

Returns

bool —

True when the key is set to a truthy value.