SETTINGS
SETTINGS = 'strata.settings'
The configuration object every settings form edits.
Which realms are captured, and how the one that dominates the volume is treated.
The access-churn choice is the largest single lever on what a site stores, so it is a radio
group with its measured consequence written next to each option rather than a checkbox. Two thirds
of a Drupal site's write volume is users_field_data.access and login timestamp churn: core
writes access whenever the request is more than session_write_interval seconds newer than the
last one, which defaults to 180.
Turning it off costs MORE than recording a compact event, which is the result an operator would never guess. Dropping the operation leaves the row dirty, and the reconciler then picks it up on cron at the full price of a field delta.
The raw SQL tap is offered with the measured overhead, because it is the one capture source that costs something on every request rather than only when something changes.
$engine : ?\Drupal\strata\Engine
The engine, reset after a save.
create(\Symfony\Component\DependencyInjection\ContainerInterface $container) : static
{@inheritdoc}
The engine is asked for, never required. composer.json PSR-4 maps Drupal\strata\ onto
src/, so every class here loads off composer's autoloader whether or not the module is in
core.extension, while strata.services.yml reaches the container only when it is. A router
table still holding this route after the module left - a failed install, a composer remove
with no uninstall - therefore resolves the class, calls this, and answered 500 with
ServiceNotFoundException until 1.0.3. The property is nullable and every use of it is
null-safe, so asking is the whole fix.
| \Symfony\Component\DependencyInjection\ContainerInterface | $container |
coerce(mixed $value, string $type) : mixed
Coerces a submitted value to the type the config schema declares.
A form always submits strings, and configuration is schema-validated on save, so an integer
setting handed the string "15" fails validation on a site running strictConfigSchema.
| mixed | $value | The submitted value. |
| string | $type | One of "string", "int", "float" or "bool". |
The coerced value.