Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
typed_entity
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
typed_entity
Commits
5ba7b026
Commit
5ba7b026
authored
Mar 21, 2015
by
Mateu Aguiló Bosch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#10
: Use module invoke from xautoload
parent
ffca99c2
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/typed_entity_example/lib/Drupal/typed_entity_example/Tests/TypedEntityExampleWebTestCase.php
+0
-3
0 additions, 3 deletions
...ed_entity_example/Tests/TypedEntityExampleWebTestCase.php
src/TypedEntity/TypedEntityManager.php
+1
-1
1 addition, 1 deletion
src/TypedEntity/TypedEntityManager.php
with
1 addition
and
4 deletions
modules/typed_entity_example/lib/Drupal/typed_entity_example/Tests/TypedEntityExampleWebTestCase.php
+
0
−
3
View file @
5ba7b026
...
...
@@ -7,10 +7,7 @@
namespace
Drupal\typed_entity_example\Tests
;
use
Drupal\typed_entity
\TypedEntity\TypedEntity
;
use
Drupal\typed_entity
\TypedEntity\TypedEntityManager
;
use
Drupal\typed_entity_example
\TypedEntity\Node\Article
;
use
Drupal\typed_entity_example
\TypedEntity\TypedNode
;
class
TypedEntityExampleWebTestCase
extends
\DrupalWebTestCase
{
...
...
This diff is collapsed.
Click to expand it.
src/TypedEntity/TypedEntityManager.php
+
1
−
1
View file @
5ba7b026
...
...
@@ -89,7 +89,7 @@ class TypedEntityManager implements TypedEntityManagerInterface {
* An array of class name candidates.
*/
protected
static
function
getClassNameCandidates
(
$entity_type
,
$bundle
=
NULL
)
{
$candidates
=
module
_i
nvoke
_a
ll
(
'typed_entity_registry_info'
);
$candidates
=
static
::
$system
->
module
I
nvoke
A
ll
(
'typed_entity_registry_info'
);
$candidate_entity_type
=
$candidate_bundle
=
''
;
foreach
(
$candidates
as
$candidate
)
{
if
(
$candidate
[
'entity_type'
]
!=
$entity_type
)
{
...
...
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