Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
etools
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
etools
Commits
98dfbf63
Commit
98dfbf63
authored
6 months ago
by
Eric Volkernick
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3297147
by sonfd: Add Drupal 10 and 11 compatibility.
parent
43168e8e
Branches
1.0.x
Tags
1.0.0
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.txt
+1
-1
1 addition, 1 deletion
README.txt
etools.info.yml
+3
-3
3 additions, 3 deletions
etools.info.yml
src/EtoolsEntity.php
+1
-0
1 addition, 0 deletions
src/EtoolsEntity.php
with
5 additions
and
4 deletions
README.txt
+
1
−
1
View file @
98dfbf63
E
ric
Tools
ETools
This diff is collapsed.
Click to expand it.
etools.info.yml
+
3
−
3
View file @
98dfbf63
name
:
E
ric
tools
name
:
Etools
description
:
A small collection of utilities and plugins for developers and site builders.
type
:
module
core_version_requirement
:
^9
package
:
E
ric tool suite
core_version_requirement
:
^9
|| ^10 || ^11
package
:
E
tools
This diff is collapsed.
Click to expand it.
src/EtoolsEntity.php
+
1
−
0
View file @
98dfbf63
...
...
@@ -45,6 +45,7 @@ class EtoolsEntity {
->
getFieldStorageDefinition
();
$cardinality
=
$field_storage_definition
->
getCardinality
();
$property_name
=
!
empty
(
$property_name
)
?
$property_name
:
$field_storage_definition
->
getMainPropertyName
();
if
(
empty
(
$property_name
))
{
throw
new
\Exception
(
"No property_name passed to \Drupal::service('etools.entity')->getFieldValue() and a property_name can't be determined automatically."
);
...
...
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