Entity class missing `::label()` method
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3563611. --> Reported by: [marcoscano](https://www.drupal.org/user/1288796) Related to !25 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The entity class has a <code>label</code> basefield but it doesn't implement a <code>::label()</code> method. By doing so we delegate this method to the base class, which looks for a 'label' entity key, which we don't have either.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Have any custom code calling <code>$entity-&gt;label()</code> on a <code>embedded_paragraphs</code> entity. It will return <code>NULL</code> instead of the entity label.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Implement a <code>::label()</code> method in the entity class, overriding the base class implementation.</p>
issue