Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rng
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
rng
Commits
01b1303f
Commit
01b1303f
authored
9 years ago
by
dpi
Browse files
Options
Downloads
Patches
Plain Diff
Fixed compatibility with Drupal8-beta13
Fixed
#42
parent
6f29d7ba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Form/EventTypeForm.php
+2
-3
2 additions, 3 deletions
src/Form/EventTypeForm.php
src/Plugin/Menu/LocalAction/ResetAccessRules.php
+3
-0
3 additions, 0 deletions
src/Plugin/Menu/LocalAction/ResetAccessRules.php
with
5 additions
and
3 deletions
src/Form/EventTypeForm.php
+
2
−
3
View file @
01b1303f
...
@@ -82,7 +82,7 @@ class EventTypeForm extends EntityForm {
...
@@ -82,7 +82,7 @@ class EventTypeForm extends EntityForm {
}
}
if
(
$event_type
->
isNew
())
{
if
(
$event_type
->
isNew
())
{
$bundle_options
=
array
()
;
$bundle_options
=
[]
;
// Generate a list of fieldable bundles which are not events.
// Generate a list of fieldable bundles which are not events.
foreach
(
$this
->
entityManager
->
getDefinitions
()
as
$entity_type
)
{
foreach
(
$this
->
entityManager
->
getDefinitions
()
as
$entity_type
)
{
if
(
$entity_type
->
isSubclassOf
(
'\Drupal\Core\Entity\ContentEntityInterface'
))
{
if
(
$entity_type
->
isSubclassOf
(
'\Drupal\Core\Entity\ContentEntityInterface'
))
{
...
@@ -133,9 +133,8 @@ class EventTypeForm extends EntityForm {
...
@@ -133,9 +133,8 @@ class EventTypeForm extends EntityForm {
'#title'
=>
$this
->
t
(
'Bundle'
),
'#title'
=>
$this
->
t
(
'Bundle'
),
'#options'
=>
$bundle_options
,
'#options'
=>
$bundle_options
,
'#default_value'
=>
$event_type
->
id
(),
'#default_value'
=>
$event_type
->
id
(),
'#required'
=>
TRUE
,
'#disabled'
=>
!
$event_type
->
isNew
(),
'#disabled'
=>
!
$event_type
->
isNew
(),
'#empty_option'
=>
$bundle_options
?:
t
(
'No Bundles Available'
),
'#empty_option'
=>
$bundle_options
?
NULL
:
t
(
'No Bundles Available'
),
);
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/Menu/LocalAction/ResetAccessRules.php
+
3
−
0
View file @
01b1303f
...
@@ -12,12 +12,15 @@ use Drupal\Core\Routing\RouteProviderInterface;
...
@@ -12,12 +12,15 @@ use Drupal\Core\Routing\RouteProviderInterface;
use
Drupal\rng\EventManagerInterface
;
use
Drupal\rng\EventManagerInterface
;
use
Drupal\Core\Routing\RouteMatchInterface
;
use
Drupal\Core\Routing\RouteMatchInterface
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
use
Drupal\Core\StringTranslation\StringTranslationTrait
;
/**
/**
* Modifies the reset access rules action.
* Modifies the reset access rules action.
*/
*/
class
ResetAccessRules
extends
LocalActionDefault
{
class
ResetAccessRules
extends
LocalActionDefault
{
use
StringTranslationTrait
;
/**
/**
* The RNG event manager.
* The RNG event manager.
*
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment