Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2
This commit is contained in:
parent
9eae24d844
commit
28556d630e
1322 changed files with 6699 additions and 2064 deletions
|
@ -27,7 +27,7 @@
|
|||
* @return array
|
||||
* Returns the form array to be built.
|
||||
*
|
||||
* @see \Drupal\field_ui\DisplayOverView.
|
||||
* @see \Drupal\field_ui\DisplayOverView
|
||||
*/
|
||||
function hook_field_formatter_third_party_settings_form(\Drupal\Core\Field\FormatterInterface $plugin, \Drupal\Core\Field\FieldDefinitionInterface $field_definition, $view_mode, $form, \Drupal\Core\Form\FormStateInterface $form_state) {
|
||||
$element = array();
|
||||
|
@ -60,7 +60,7 @@ function hook_field_formatter_third_party_settings_form(\Drupal\Core\Field\Forma
|
|||
* @return array
|
||||
* Returns the form array to be built.
|
||||
*
|
||||
* @see \Drupal\field_ui\FormDisplayOverView.
|
||||
* @see \Drupal\field_ui\FormDisplayOverView
|
||||
*/
|
||||
function hook_field_widget_third_party_settings_form(\Drupal\Core\Field\WidgetInterface $plugin, \Drupal\Core\Field\FieldDefinitionInterface $field_definition, $form_mode, $form, \Drupal\Core\Form\FormStateInterface $form_state) {
|
||||
$element = array();
|
||||
|
@ -87,7 +87,7 @@ function hook_field_widget_third_party_settings_form(\Drupal\Core\Field\WidgetIn
|
|||
* - field_definition: The field definition.
|
||||
* - view_mode: The view mode being configured.
|
||||
*
|
||||
* @see \Drupal\field_ui\DisplayOverView.
|
||||
* @see \Drupal\field_ui\DisplayOverView
|
||||
*/
|
||||
function hook_field_formatter_settings_summary_alter(&$summary, $context) {
|
||||
// Append a message to the summary when an instance of foo_formatter has
|
||||
|
@ -110,7 +110,7 @@ function hook_field_formatter_settings_summary_alter(&$summary, $context) {
|
|||
* - field_definition: The field definition.
|
||||
* - form_mode: The form mode being configured.
|
||||
*
|
||||
* @see \Drupal\field_ui\FormDisplayOverView.
|
||||
* @see \Drupal\field_ui\FormDisplayOverView
|
||||
*/
|
||||
function hook_field_widget_settings_summary_alter(&$summary, $context) {
|
||||
// Append a message to the summary when an instance of foo_widget has
|
||||
|
|
|
@ -144,7 +144,7 @@ function field_ui_entity_operation(EntityInterface $entity) {
|
|||
// of another and that type has field UI enabled.
|
||||
if (($bundle_of = $info->getBundleOf()) && \Drupal::entityManager()->getDefinition($bundle_of)->get('field_ui_base_route')) {
|
||||
$account = \Drupal::currentUser();
|
||||
if ($account->hasPermission('administer '. $bundle_of . ' fields')) {
|
||||
if ($account->hasPermission('administer ' . $bundle_of . ' fields')) {
|
||||
$operations['manage-fields'] = array(
|
||||
'title' => t('Manage fields'),
|
||||
'weight' => 15,
|
||||
|
@ -153,7 +153,7 @@ function field_ui_entity_operation(EntityInterface $entity) {
|
|||
)),
|
||||
);
|
||||
}
|
||||
if ($account->hasPermission('administer '. $bundle_of . ' form display')) {
|
||||
if ($account->hasPermission('administer ' . $bundle_of . ' form display')) {
|
||||
$operations['manage-form-display'] = array(
|
||||
'title' => t('Manage form display'),
|
||||
'weight' => 20,
|
||||
|
@ -162,7 +162,7 @@ function field_ui_entity_operation(EntityInterface $entity) {
|
|||
)),
|
||||
);
|
||||
}
|
||||
if ($account->hasPermission('administer '. $bundle_of . ' display')) {
|
||||
if ($account->hasPermission('administer ' . $bundle_of . ' display')) {
|
||||
$operations['manage-display'] = array(
|
||||
'title' => t('Manage display'),
|
||||
'weight' => 25,
|
||||
|
|
|
@ -186,4 +186,5 @@ class FieldUiLocalTask extends DeriverBase implements ContainerDeriverInterface
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -37,4 +37,5 @@ class FieldUIIndentationTest extends WebTestBase {
|
|||
$this->drupalGet('admin/structure/types/manage/page/display');
|
||||
$this->assertRaw('js-indentation indentation');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -304,7 +304,7 @@ class ManageDisplayTest extends WebTestBase {
|
|||
$field_test_with_prepare_view_settings = $formatter_plugin_manager->getDefaultSettings('field_test_with_prepare_view');
|
||||
$output = array(
|
||||
'field_test_default' => $field_test_default_settings['test_formatter_setting'] . '|' . $value,
|
||||
'field_test_with_prepare_view' => $field_test_with_prepare_view_settings['test_formatter_setting_additional'] . '|' . $value. '|' . ($value + 1),
|
||||
'field_test_with_prepare_view' => $field_test_with_prepare_view_settings['test_formatter_setting_additional'] . '|' . $value . '|' . ($value + 1),
|
||||
);
|
||||
|
||||
// Check that the field is displayed with the default formatter in 'rss'
|
||||
|
@ -470,7 +470,7 @@ class ManageDisplayTest extends WebTestBase {
|
|||
$clone = clone $node;
|
||||
$element = node_view($clone, $view_mode);
|
||||
$output = \Drupal::service('renderer')->renderRoot($element);
|
||||
$this->verbose(t('Rendered node - view mode: @view_mode', array('@view_mode' => $view_mode)) . '<hr />'. $output);
|
||||
$this->verbose(t('Rendered node - view mode: @view_mode', array('@view_mode' => $view_mode)) . '<hr />' . $output);
|
||||
|
||||
// Assign content so that WebTestBase functions can be used.
|
||||
$this->setRawContent($output);
|
||||
|
|
|
@ -79,7 +79,7 @@ class ManageFieldsTest extends WebTestBase {
|
|||
// Create random field name with markup to test escaping.
|
||||
$this->fieldLabel = '<em>' . $this->randomMachineName(8) . '</em>';
|
||||
$this->fieldNameInput = strtolower($this->randomMachineName(8));
|
||||
$this->fieldName = 'field_'. $this->fieldNameInput;
|
||||
$this->fieldName = 'field_' . $this->fieldNameInput;
|
||||
|
||||
// Create Basic page and Article node types.
|
||||
$this->drupalCreateContentType(array('type' => 'page', 'name' => 'Basic page'));
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
* - no_striping: A flag indicating that the row should receive no
|
||||
* 'even / odd' styling. Defaults to FALSE.
|
||||
* - cells: Table cells of the row. Each cell contains the following keys:
|
||||
* - tag: The HTML tag name to use; either TH or TD.
|
||||
* - tag: The HTML tag name to use; either 'th' or 'td'.
|
||||
* - attributes: Any HTML attributes, such as "colspan", to apply to the
|
||||
* table cell.
|
||||
* - content: The string to display in the table cell.
|
||||
|
|
|
@ -113,7 +113,7 @@ class EntityDisplayTest extends KernelTestBase {
|
|||
}
|
||||
|
||||
/**
|
||||
* Test sorting of components by name on basic CRUD operations
|
||||
* Test sorting of components by name on basic CRUD operations
|
||||
*/
|
||||
public function testEntityDisplayCRUDSort() {
|
||||
$display = EntityViewDisplay::create(array(
|
||||
|
|
Reference in a new issue