Method
set
Found usages (47 usages found)
Method call (46 usages found)
drupal-8.0.x (46 usages found)
core/includes (1 usage found)
errors.inc (1 usage found)
_drupal_log_error (1 usage found)
(255: 40) drupal_set_message(SafeMarkup::set($message), $class, TRUE);
core/lib/Drupal/Component/Utility (2 usages found)
SafeMarkup.php (2 usages found)
SafeMarkup (2 usages found)
replace (1 usage found)
(368: 26) return SafeMarkup::set($output);
xssFilter (1 usage found)
(192: 20) return static::set($string);
core/lib/Drupal/Core/Field (1 usage found)
AllowedTagsXssTrait.php (1 usage found)
AllowedTagsXssTrait (1 usage found)
fieldFilterXss (1 usage found)
(45: 24) return SafeMarkup::set(Html::normalize(Xss::filter($string, $this->allowedTags())));
core/lib/Drupal/Core/Form (1 usage found)
FormErrorHandler.php (1 usage found)
FormErrorHandler (1 usage found)
displayErrorMessages (1 usage found)
(99: 34) '!errors' => SafeMarkup::set(implode(', ', $error_links)),
core/lib/Drupal/Core/StringTranslation (1 usage found)
TranslationManager.php (1 usage found)
TranslationManager (1 usage found)
translate (1 usage found)
(145: 26) return SafeMarkup::set($string);
core/lib/Drupal/Core/Utility (1 usage found)
Error.php (1 usage found)
Error (1 usage found)
renderExceptionSafe (1 usage found)
(105: 24) return SafeMarkup::set($output);
core/modules/field_ui/src (1 usage found)
FieldStorageConfigListBuilder.php (1 usage found)
FieldStorageConfigListBuilder (1 usage found)
buildRow (1 usage found)
(128: 41) $row['data']['usage'] = SafeMarkup::set($usage_escaped);
core/modules/rdf (4 usages found)
rdf.module (4 usages found)
rdf_preprocess_comment (4 usages found)
(446: 40) $variables['author'] = SafeMarkup::set('' . $variables['author'] . '');
(447: 43) $variables['submitted'] = SafeMarkup::set('' . $variables['submitted'] . '');
(463: 41) $variables['created'] = SafeMarkup::set(SafeMarkup::escape($variables['created']) . $created_metadata_markup);
(464: 43) $variables['submitted'] = SafeMarkup::set($variables['submitted'] . $created_metadata_markup);
core/modules/rest/src/Plugin/views/display (1 usage found)
RestExport.php (1 usage found)
RestExport (1 usage found)
render (1 usage found)
(337: 39) $build['#markup'] = SafeMarkup::set($build['#markup']);
core/modules/shortcut/src/Tests (1 usage found)
ShortcutSetsTest.php (1 usage found)
ShortcutSetsTest (1 usage found)
testShortcutSetSwitchNoSetName (1 usage found)
(137: 32) '!errors' => SafeMarkup::set('Label')
core/modules/system (2 usages found)
system.install (2 usages found)
system_requirements (2 usages found)
(141: 39) $phpversion_label = SafeMarkup::set($phpversion . ' (' . \Drupal::l(t('more information'), new Url('system.php')) . ')');
(454: 36) 'description' => SafeMarkup::set($description),
core/modules/system/src/Tests/Form (1 usage found)
ValidationTest.php (1 usage found)
ValidationTest (1 usage found)
assertErrorMessages (1 usage found)
(296: 32) '!errors' => SafeMarkup::set(implode(', ', $error_links))
core/modules/system/tests/modules/batch_test (1 usage found)
batch_test.callbacks.inc (1 usage found)
_batch_test_finished_helper (1 usage found)
(107: 34) drupal_set_message(SafeMarkup::set(implode('
', $messages)));
core/modules/views (4 usages found)
views.theme.inc (4 usages found)
template_preprocess_views_view_table (4 usages found)
(488: 32) $label = SafeMarkup::set($label . $markup);
(581: 39) $field_output = SafeMarkup::set('<' . $element_type . '>' . SafeMarkup::escape($field_output) . '' . $element_type . '>');
(591: 58) $column_reference['content'] = SafeMarkup::set($safe_content . $safe_separator);
(599: 54) $column_reference['content'] = SafeMarkup::set($safe_content . $safe_field_output);
core/modules/views_ui/src (1 usage found)
ViewListBuilder.php (1 usage found)
ViewListBuilder (1 usage found)
buildRow (1 usage found)
(116: 31) 'path' => SafeMarkup::set($display_paths),
core/modules/views_ui/src/Controller (2 usages found)
ViewsUIController.php (2 usages found)
ViewsUIController (2 usages found)
reportFields (1 usage found)
(96: 51) $rows[$field_name]['data'][1] = SafeMarkup::set(implode(', ', $rows[$field_name]['data'][1]));
reportPlugins (1 usage found)
(124: 35) $row['views'] = SafeMarkup::set(implode(', ', $row['views']));
core/tests/Drupal/Tests/Component/Utility (19 usages found)
SafeMarkupTest.php (19 usages found)
SafeMarkupTest (19 usages found)
providerFormat (3 usages found)
(186: 76) set
(188: 80) set
(190: 77) set
providerReplace (11 usages found)
(262: 19) SafeMarkup::set('foo'),
(271: 19) SafeMarkup::set('foo'),
(272: 19) SafeMarkup::set('barbaz'),
(282: 19) SafeMarkup::set('barbaz'),
(290: 20) [SafeMarkup::set('foo'), SafeMarkup::set('bar'), SafeMarkup::set('baz')],
(290: 44) [SafeMarkup::set('foo'), SafeMarkup::set('bar'), SafeMarkup::set('baz')],
(290: 68) [SafeMarkup::set('foo'), SafeMarkup::set('bar'), SafeMarkup::set('baz')],
(291: 19) SafeMarkup::set(''),
(299: 20) [SafeMarkup::set('bar'), SafeMarkup::set('baz'), 'qux'],
(299: 44) [SafeMarkup::set('bar'), SafeMarkup::set('baz'), 'qux'],
(300: 19) SafeMarkup::set(''),
testSet (1 usage found)
(35: 29) $returned = SafeMarkup::set($text);
testStrategy (4 usages found)
(63: 29) $returned = SafeMarkup::set('string0', 'html');
(65: 29) $returned = SafeMarkup::set('string1', 'all');
(67: 29) $returned = SafeMarkup::set('string2', 'css');
(69: 29) $returned = SafeMarkup::set('string3');
core/tests/Drupal/Tests/Core/Form (1 usage found)
FormCacheTest.php (1 usage found)
FormCacheTest (1 usage found)
testSetCacheWithSafeStrings (1 usage found)
(432: 17) SafeMarkup::set('a_safe_string');
core/tests/Drupal/Tests/Core/Utility (1 usage found)
LinkGeneratorTest.php (1 usage found)
LinkGeneratorTest (1 usage found)
testGenerateWithHtml (1 usage found)
(379: 58) $result = $this->linkGenerator->generate(SafeMarkup::set('HTML output'), $url);
Usage in comments (1 usage found)
drupal-8.0.x (1 usage found)
core/lib/Drupal/Component/Utility (1 usage found)
SafeStringInterface.php (1 usage found)
(32: 9) * @see \Drupal\Component\Utility\SafeMarkup::set()