Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions entity_plus.module
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function entity_plus_entity_info_alter(&$entity_plus_info) {
$entity_plus_info[$type]['configuration'] = !empty($info['exportable']);
}

if (isset($info['controller class']) && in_array('EntityPlusControllerInterface', class_implements($info['controller class']))) {
if (isset($info['controller class']) && in_array('EntityPlusControllerInterface', class_implements($info['controller class']) ?? [])) {
// Automatically disable field cache when entity cache is used.
if (!empty($info['entity cache'])) {
$entity_plus_info[$type]['field cache'] = FALSE;
Expand Down Expand Up @@ -1209,9 +1209,9 @@ function entity_plus_modules_disabled($modules) {

/**
* Helper for using i18n_string().
*
* For backward compatibility, this function (which can be called even if
* i18n_string is not enabled) is kept in this module rather than in the new
*
* For backward compatibility, this function (which can be called even if
* i18n_string is not enabled) is kept in this module rather than in the new
* submodule entity_plus_i18n.
*
* @param $name
Expand Down