Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
220
Merge Requests
220
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
ffe7d13a
Commit
ffe7d13a
authored
Aug 08, 2016
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2780705
by timmillwood: Fix "Manage moderation" dropbutton on /admin/structure/types
parent
bc00f081
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
core/modules/content_moderation/content_moderation.module
core/modules/content_moderation/content_moderation.module
+1
-1
core/modules/content_moderation/src/Tests/ModerationStateTestBase.php
.../content_moderation/src/Tests/ModerationStateTestBase.php
+2
-0
No files found.
core/modules/content_moderation/content_moderation.module
View file @
ffe7d13a
...
...
@@ -67,7 +67,7 @@ function content_moderation_entity_type_alter(array &$entity_types) {
* Implements hook_entity_operation().
*/
function
content_moderation_entity_operation
(
EntityInterface
$entity
)
{
_content_moderation_create_entity_type_info
()
->
entityOperation
(
$entity
);
return
_content_moderation_create_entity_type_info
()
->
entityOperation
(
$entity
);
}
/**
...
...
core/modules/content_moderation/src/Tests/ModerationStateTestBase.php
View file @
ffe7d13a
...
...
@@ -106,6 +106,8 @@ protected function createContentTypeFromUi($content_type_name, $content_type_id,
* Default state.
*/
protected
function
enableModerationThroughUi
(
$content_type_id
,
array
$allowed_states
,
$default_state
)
{
$this
->
drupalGet
(
'admin/structure/types'
);
$this
->
assertLinkByHref
(
'admin/structure/types/manage/'
.
$content_type_id
.
'/moderation'
);
$this
->
drupalGet
(
'admin/structure/types/manage/'
.
$content_type_id
.
'/moderation'
);
$this
->
assertFieldByName
(
'enable_moderation_state'
);
$this
->
assertNoFieldChecked
(
'edit-enable-moderation-state'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment