Commit fcb5df20 authored by catch's avatar catch

Issue #2347053 by andypost, swentel: "Field settings" local task from Field UI is missing

parent d3703f9f
......@@ -101,7 +101,7 @@ public function getDerivativeDefinitions($base_plugin_definition) {
);
// Field settings tab.
$this->derivatives["field_edit_$entity_type_id"] = array(
$this->derivatives["field_storage_$entity_type_id"] = array(
'route_name' => "field_ui.storage_edit_$entity_type_id",
'title' => $this->t('Field settings'),
'base_route' => "field_ui.field_edit_$entity_type_id",
......
......@@ -217,6 +217,12 @@ function cardinalitySettings() {
$this->assertFieldByXPath("//select[@name='field_storage[cardinality]']", 'number');
$this->assertFieldByXPath("//input[@name='field_storage[cardinality_number]']", 6);
// Check that tabs displayed.
$this->assertLink(t('Edit'));
$this->assertLinkByHref('admin/structure/types/manage/article/fields/node.article.body');
$this->assertLink(t('Field settings'));
$this->assertLinkByHref($field_edit_path);
// Set to unlimited.
$edit = array(
'field_storage[cardinality]' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment