_editor_parse_file_uuids

_editor_parse_file_uuids($text) Parse an HTML snippet for any linked file with data-entity-uuid attributes. Parameters string $text: The partial (X)HTML snippet to load. Invalid markup will be corrected on import. Return value array An array of all found UUIDs. File core/modules/editor/editor.module, line 600 Adds bindings for client-side "text editors" to text formats. Code function _editor_parse_file_uuids($text) { $dom = Html::load($text); $xpath = new \DOMXPath($dom); $uuids = arr

_editor_record_file_usage

_editor_record_file_usage(array $uuids, EntityInterface $entity) Records file usage of files referenced by formatted text fields. Every referenced file that does not yet have the FILE_STATUS_PERMANENT state, will be given that state. Parameters array $uuids: An array of file entity UUIDs. EntityInterface $entity: An entity whose fields to inspect for file references. File core/modules/editor/editor.module, line 437 Adds bindings for client-side "text editors" to text formats. Code function _

_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 =

_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

_filter_autop

_filter_autop($text) Converts line breaks into <p> and <br> in an intelligent fashion. Based on: http://photomatt.net/scripts/autop Related topics Standard filters Filters implemented by the Filter module. File core/modules/filter/filter.module, line 693 Framework for handling the filtering of content. Code function _filter_autop($text) { // All block level tags $block = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|ma

_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)); }

_filter_html_image_secure_process

_filter_html_image_secure_process($text) Process callback for local image filter. Related topics Standard filters Filters implemented by the Filter module. File core/modules/filter/filter.module, line 765 Framework for handling the filtering of content. Code function _filter_html_image_secure_process($text) { // Find the path (e.g. '/') to Drupal root. $base_path = base_path(); $base_path_length = Unicode::strlen($base_path); // Find the directory on the server where index.php resi

_filter_tips

_filter_tips($format_id, $long = FALSE) Retrieves the filter tips. Parameters string $format_id: The ID of the text format for which to retrieve tips, or -1 to return tips for all formats accessible to the current user. bool $long: (optional) Boolean indicating whether the long form of tips should be returned. Defaults to FALSE. Return value array An associative array of filtering tips, keyed by filter name. Each filtering tip is an associative array with elements: tip: Tip text. id: Filter

_filter_url

_filter_url($text, $filter) Converts text into hyperlinks automatically. This filter identifies and makes clickable three types of "links". URLs like http://example.com. Email addresses like name@example.com. Web addresses without the "http://" protocol defined, like www.example.com. Each type must be processed separately, as there is no one regular expression that could possibly match all of the cases in one pass. Related topics Standard filters Filters implemented by the Filter module. Fi

_filter_url_escape_comments

_filter_url_escape_comments($match, $escape = NULL) Escapes the contents of HTML comments. Callback for preg_replace_callback() within _filter_url(). Parameters array $match: An array containing matches to replace from preg_replace_callback(), whereas $match[1] is expected to contain the content to be filtered. bool|null $escape: (optional) A Boolean indicating whether to escape (TRUE) or unescape comments (FALSE). Defaults to NULL, indicating neither. If TRUE, statically cached $comments are