Update to Drupal 8.0.2. For more information, see https://www.drupal.org/drupal-8.0.2-release-notes
This commit is contained in:
parent
1a0e9d9fac
commit
a6b049dd05
538 changed files with 5247 additions and 1594 deletions
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
theme:
|
||||
- classy
|
||||
id: test_default_config
|
||||
theme: classy
|
||||
region: content
|
||||
weight: -40
|
||||
provider: null
|
||||
plugin: local_tasks_block
|
||||
settings:
|
||||
id: local_tasks_block
|
||||
label: Tabs
|
||||
provider: core
|
||||
label_display: '0'
|
||||
primary: true
|
||||
secondary: true
|
||||
visibility: { }
|
|
@ -146,3 +146,60 @@ function locale_test_language_fallback_candidates_locale_lookup_alter(array &$ca
|
|||
\Drupal::state()->set('locale.test_language_fallback_candidates_locale_lookup_alter_candidates', $candidates);
|
||||
\Drupal::state()->set('locale.test_language_fallback_candidates_locale_lookup_alter_context', $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_theme().
|
||||
*/
|
||||
function locale_test_theme() {
|
||||
$return = [];
|
||||
|
||||
$return['locale_test_tokenized'] = [
|
||||
'variable' => ['content' => ''],
|
||||
];
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_token_info().
|
||||
*/
|
||||
function locale_test_token_info() {
|
||||
$info = [];
|
||||
|
||||
$info['types']['locale_test'] = [
|
||||
'name' => t('Locale test'),
|
||||
'description' => t('Locale test'),
|
||||
];
|
||||
|
||||
$info['tokens']['locale_test']['security_test1'] = [
|
||||
'type' => 'text',
|
||||
'name' => t('Security test 1'),
|
||||
];
|
||||
$info['tokens']['locale_test']['security_test2'] = [
|
||||
'type' => 'text',
|
||||
'name' => t('Security test 2'),
|
||||
];
|
||||
|
||||
return $info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_tokens().
|
||||
*/
|
||||
function locale_test_tokens($type, $tokens, array $data = [], array $options = []) {
|
||||
$return = [];
|
||||
if ($type == 'locale_test') {
|
||||
foreach ($tokens as $name => $original) {
|
||||
switch ($name) {
|
||||
case 'security_test1':
|
||||
$return[$original] = "javascript:alert('Mooooh!');";
|
||||
break;
|
||||
case 'security_test2':
|
||||
$return[$original] = "<script>alert('Mooooh!');</script>";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
{{ content }}
|
|
@ -33,7 +33,7 @@ class LocaleLocalTasksTest extends LocalTaskIntegrationTestBase {
|
|||
*/
|
||||
public function testLocalePageLocalTasks($route) {
|
||||
$tasks = array(
|
||||
0 => array('locale.translate_page', 'locale.translate_import', 'locale.translate_export','locale.settings'),
|
||||
0 => array('locale.translate_page', 'locale.translate_import', 'locale.translate_export', 'locale.settings'),
|
||||
);
|
||||
$this->assertLocalTasks($route, $tasks);
|
||||
}
|
||||
|
|
Reference in a new issue