src/Drupal/functions bootstrap.php

Functions

check_plain()

check_plain(\Drupal\Component\Render\MarkupInterface|\Stringable|string  $text) : string

Parameters

\Drupal\Component\Render\MarkupInterface|\Stringable|string $text

Returns

string —

conf_path()

conf_path(bool  $require_settings = true, bool  $reset = false) : string

Parameters

bool $require_settings
bool $reset

Returns

string —

drupal_get_profile()

drupal_get_profile() : string

Returns the name of the installed profile, or `standard` when the site has none, as Drupal 7 did.

Returns

string —

drupal_get_filename()

drupal_get_filename(string  $type, string  $name, ?string  $filename = null, bool  $trigger_error = false) : ?string

Parameters

string $type
string $name
?string $filename
bool $trigger_error

Returns

?string —

drupal_get_schema()

drupal_get_schema(?string  $table = null, ?bool  $rebuild = false) : false|array{fields: array<string,array{serialize: bool, type: string, default: mixed, 'not null'?: bool}>}

Parameters

?string $table
?bool $rebuild

Returns

false|array{fields: array} —

drupal_hash_base64()

drupal_hash_base64(string  $data) : string

Parameters

string $data

Returns

string —

drupal_is_https()

drupal_is_https() : bool

Returns

bool —

get_t()

get_t() : string

Returns

string —

drupal_set_title()

drupal_set_title(?string  $title = null, int  $output = \CHECK_PLAIN) : array|string|\Stringable|null

Parameters

?string $title
int $output

Returns

array|string|\Stringable|null —

drupal_get_title()

drupal_get_title() : array|string|\Stringable|null

Returns

array|string|\Stringable|null —

format_string()

format_string(string  $string, array  $args = []) : \Drupal\Component\Render\MarkupInterface

Parameters

string $string
array $args

Returns

\Drupal\Component\Render\MarkupInterface —

request_uri()

request_uri() : string

Returns

string —

watchdog()

watchdog(string  $type, string|\Stringable  $message, array  $variables = [], int  $severity = \WATCHDOG_NOTICE, ?string  $link = null) : void

Parameters

string $type
string|\Stringable $message
array $variables
int $severity
?string $link

Returns

void —