Skip to content
Snippets Groups Projects
Commit 98dfbf63 authored by Eric Volkernick's avatar Eric Volkernick
Browse files

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
Eric Tools
ETools
name: Eric tools
name: Etools
description: A small collection of utilities and plugins for developers and site builders.
type: module
core_version_requirement: ^9
package: Eric tool suite
core_version_requirement: ^9 || ^10 || ^11
package: Etools
......@@ -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.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment