_filter_html_escape

_filter_html_escape($text) Escapes all HTML tags, so they will be visible instead of being effective. Related topics Standard filters Filters implemented by the Filter module. File core/modules/filter/filter.module, line 758 Framework for handling the filtering of content. Code function _filter_html_escape($text) { return trim(Html::escape($text)); }

_field_multiple_value_form_sort_helper

_field_multiple_value_form_sort_helper($a, $b) Callback for usort() within template_preprocess_field_multiple_value_form(). Sorts using ['_weight']['#value'] File core/includes/theme.inc, line 1706 The theme system, which controls the output of Drupal. Code function _field_multiple_value_form_sort_helper($a, $b) { $a_weight = (is_array($a) && isset($a['_weight']['#value']) ? $a['_weight']['#value'] : 0); $b_weight = (is_array($b) && isset($b['_weight']['#value']) ? $b['_we

_field_create_entity_from_ids

_field_create_entity_from_ids($ids) Assembles a partial entity structure with initial IDs. Parameters object $ids: An object with the properties entity_type (required), entity_id (required), revision_id (optional) and bundle (optional). Return value \Drupal\Core\Entity\EntityInterface An entity, initialized with the provided IDs. File core/modules/field/field.module, line 285 Attach custom data fields to Drupal entities. Code function _field_create_entity_from_ids($ids) { $id_properties =

_editor_get_file_uuids_by_field

_editor_get_file_uuids_by_field(EntityInterface $entity) Finds all files referenced (data-entity-uuid) by formatted text fields. Parameters EntityInterface $entity: An entity whose fields to analyze. Return value array An array of file entity UUIDs. File core/modules/editor/editor.module, line 551 Adds bindings for client-side "text editors" to text formats. Code function _editor_get_file_uuids_by_field(EntityInterface $entity) { $uuids = array(); $formatted_text_fields = _editor_get_f

_editor_get_formatted_text_fields

_editor_get_formatted_text_fields(FieldableEntityInterface $entity) Determines the formatted text fields on an entity. Parameters \Drupal\Core\Entity\FieldableEntityInterface $entity: An entity whose fields to analyze. Return value array The names of the fields on this entity that support formatted text. File core/modules/editor/editor.module, line 578 Adds bindings for client-side "text editors" to text formats. Code function _editor_get_formatted_text_fields(FieldableEntityInterface $enti

_editor_delete_file_usage

_editor_delete_file_usage(array $uuids, EntityInterface $entity, $count) Deletes file usage of files referenced by formatted text fields. Parameters array $uuids: An array of file entity UUIDs. EntityInterface $entity: An entity whose fields to inspect for file references. $count: The number of references to delete. Should be 1 when deleting a single revision and 0 when deleting an entity entirely. See also \Drupal\file\FileUsage\FileUsageInterface::delete() File core/modules/editor/editor.mo

_drupal_shutdown_function

_drupal_shutdown_function() Executes registered shutdown functions. File core/includes/bootstrap.inc, line 978 Functions that need to be loaded on every Drupal request. Code function _drupal_shutdown_function() { $callbacks = &drupal_register_shutdown_function(); // Set the CWD to DRUPAL_ROOT as it is not guaranteed to be the same as it // was in the normal context of execution. chdir(DRUPAL_ROOT); try { while (list($key, $callback) = each($callbacks)) { call_user_fu

_drupal_shutdown_function_handle_exception

_drupal_shutdown_function_handle_exception($exception) Displays and logs any errors that may happen during shutdown. Parameters \Exception|\Throwable $exception: The exception object that was thrown. See also _drupal_shutdown_function() File core/includes/bootstrap.inc, line 1009 Functions that need to be loaded on every Drupal request. Code function _drupal_shutdown_function_handle_exception($exception) { // If using PHP-FPM then fastcgi_finish_request() will have been fired // prevent

_drupal_schema_initialize

_drupal_schema_initialize(&$schema, $module, $remove_descriptions = TRUE) Fills in required default values for table definitions from hook_schema(). Parameters array $schema: The schema definition array as it was returned by the module's hook_schema(). string $module: The module for which hook_schema() was invoked. bool $remove_descriptions: (optional) Whether to additionally remove 'description' keys of all tables and fields to improve performance of serialize() and unserialize(). Default

_drupal_rewrite_settings_is_array_index

_drupal_rewrite_settings_is_array_index($type) Helper for drupal_rewrite_settings(). Checks whether this token represents a valid array index: a number or a string. Parameters int $type: The token type. Return value bool TRUE if this token represents a number or a string. See also token_name() File core/includes/install.inc, line 397 API functions for installing modules and themes. Code function _drupal_rewrite_settings_is_array_index($type) { $is_integer = $type == T_LNUMBER; $is_floa