Commit 78c706f7 authored by catch's avatar catch

Issue #1629924 by Berdir: Fixed Default return value from...

Issue #1629924 by Berdir: Fixed Default return value from EntityInterface::label(), Entity::label(), entity_label() does not match.
parent ff895df7
......@@ -104,7 +104,7 @@ public function bundle() {
* Implements EntityInterface::label().
*/
public function label($langcode = NULL) {
$label = FALSE;
$label = NULL;
$entity_info = $this->entityInfo();
if (isset($entity_info['label callback']) && function_exists($entity_info['label callback'])) {
$label = $entity_info['label callback']($this->entityType, $this, $langcode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment