Results

17.11.2019
accessibility 8.x-1.x-dev :: modules/accessibility_testswarm/accessibility_testswarm.module
303
304
305
306
307
308
309
$hooks = theme_get_registry(FALSE);
 
// If an array of hook candidates were passed, use the first one that has an
// implementation.
if (is_array($hook)) {
  foreach ($hook as $candidate) {
    if (isset($hooks[$candidate])) {
23.06.2020
rocketship_core 8.x-2.0-alpha11 :: modules/rocketship_seo/rocketship_seo.module
25
26
27
28
29
30
31
32
if (!isset($hooks)) {
  $hooks = theme_get_registry();
}
 
// Determine the primary theme function argument.
if (isset($hooks[$hook]['variables'])) {
  $keys = array_keys($hooks[$hook]['variables']);
  $key = $keys[0];
04.06.2021
drupal_static_autoloader 01.0 :: tests/src/AutoloadTest.php
89
90
91
92
93
94
95
96
97
// Drupal core includes
yield ['function_exists', 'drupal_get_filename'];
yield ['function_exists', 'theme_get_registry'];
yield ['function_exists', 'drupal_get_schema_versions'];
// Module extension file (.module)
yield ['function_exists', 'action_entity_type_build'];
// Profile extension file (.profile)
yield ['function_exists', 'demo_umami_form_install_configure_form_alter'];
// Theme extension file (.theme)
06.03.2023
xtcentity 2.x-dev :: src/Plugin/Field/FieldFormatter/XtcFieldPluginJson2Yaml.php
100
101
102
103
104
105
106
107
108
$elements = parent::settingsForm($form, $form_state);
$settings = $this->getSettings();
$registry = theme_get_registry();
$options = [];
foreach ($registry as $key => $option) {
  $options[$key] = $key;
}
 
$elements['theme'] = [
06.03.2023
xtcentity 2.x-dev :: src/Plugin/Field/FieldFormatter/XtcFieldPluginHtml.php
94
95
96
97
98
99
100
101
102
$elements = parent::settingsForm($form, $form_state);
$settings = $this->getSettings();
$registry = theme_get_registry();
$options = [];
foreach ($registry as $key => $option) {
  $options[$key] = $key;
}
 
$elements['theme'] = [
06.03.2023
xtcentity 2.x-dev :: src/Plugin/Field/FieldFormatter/XtcFieldPluginWordpress.php
149
150
151
152
153
154
155
156
157
];
 
$registry = theme_get_registry();
$themeOptions = [];
foreach ($registry as $key => $option) {
  $themeOptions[$key] = $key;
}
$elements['theme'] = [
  '#type' => 'select',
17.10.2020
coder 8.x-3.x-dev :: coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/ThemeSniff.php
29
30
31
32
33
34
35
36
37
*/
protected $reservedFunctions = [
    'theme_get_registry',
    'theme_get_setting',
    'theme_render_template',
    'theme_enable',
    'theme_disable',
    'theme_get_suggestions',
];
18.09.2019
drupalmoduleupgrader 8.x-1.5 :: src/Plugin/DMU/Converter/Functions/ThemeGetRegistry.php
11
12
13
14
15
16
17
18
19
20
/**
 * @Converter(
 *  id = "theme_get_registry",
 *  description = @Translation("Rewrites calls to theme_get_registry().")
 * )
 */
class ThemeGetRegistry extends FunctionCallModifier {
 
  /**
   * {@inheritdoc}
18.09.2019
drupalmoduleupgrader 8.x-1.5 :: config/install/drupalmoduleupgrader.functions.yml
853
854
855
856
857
858
859
860
861
  disable: true
 
theme_get_registry:
  message: 'The theme registry is now a service.'
  documentation:
    -
      title: '`@function` is now two different methods of the `theme.registry` service'
  tags:
18.09.2019
drupalmoduleupgrader 8.x-1.5 :: tests/src/Unit/Plugin/DMU/Converter/Functions/ThemeGetRegistryTest.php
13
14
15
16
17
18
19
20
public function testRewriteNoArgument() {
  $function_call = Parser::parseExpression('theme_get_registry()');
  $rewritten = $this->plugin->rewrite($function_call, $this->target);
  $this->assertInstanceOf('\Pharborist\Objects\ObjectMethodCallNode', $rewritten);
  $this->assertEquals('\Drupal::service(\'theme.registry\')->get()', $rewritten->getText());
}
 
public function testRewriteArgument() {
20
21
22
23
24
25
26
27
28
29
30
31
32
  public function testRewriteArgument() {
    $function_call = Parser::parseExpression('theme_get_registry(FALSE)');
    $rewritten = $this->plugin->rewrite($function_call, $this->target);
    $this->assertInstanceOf('\Pharborist\Objects\ObjectMethodCallNode', $rewritten);
    $this->assertEquals('\Drupal::service(\'theme.registry\')->getRuntime()', $rewritten->getText());
 
    $function_call = Parser::parseExpression('theme_get_registry("foo")');
    $rewritten = $this->plugin->rewrite($function_call, $this->target);
    $this->assertInstanceOf('\Pharborist\Objects\ObjectMethodCallNode', $rewritten);
    $this->assertEquals('\Drupal::service(\'theme.registry\')->get()', $rewritten->getText());
  }
 
}
04.06.2020
geshifilter 8.x-2.0-beta1 :: geshi-extra/drupal6.php
356
357
358
359
360
361
362
363
364
'sess_gc', 'session_save_session', 'tablesort_init', 'tablesort_sql', 'tablesort_header',
'tablesort_cell', 'tablesort_get_querystring', 'tablesort_get_order', 'tablesort_get_sort',
'init_theme', '_init_theme', 'theme_get_registry', '_theme_set_registry', '_theme_load_registry',
'_theme_save_registry', 'drupal_rebuild_theme_registry', '_theme_process_registry',
'_theme_build_registry', 'list_themes', 'theme', 'drupal_discover_template', 'path_to_theme',
'drupal_find_theme_functions', 'drupal_find_theme_templates', 'theme_get_settings',
'theme_get_setting', 'theme_render_template', 'theme_placeholder', 'theme_status_messages',
'theme_links', 'theme_image', 'theme_breadcrumb', 'theme_help', 'theme_submenu', 'theme_table',
'theme_table_select_header_cell', 'theme_tablesort_indicator', 'theme_box', 'theme_mark',
25.09.2020
memcache 8.x-2.2 :: memcache_admin/src/EventSubscriber/MemcacheAdminSubscriber.php
94
95
96
97
98
99
100
101
// @todo make sure this is not still a requirement.
// @codingStandardsIgnoreStart
// if (!function_exists('theme_get_registry') || !theme_get_registry()) {
//   return;
// }.
// @codingStandardsIgnoreEnd
// Try not to break non-HTML pages.
if ($response instanceof HtmlResponse) {

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc