Verified Commit 903768e4 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3107500 by joachim, quietone, longwave, apaderno:...

Issue #3107500 by joachim, quietone, longwave, apaderno: EntityTypeInterface::getGroup() doesn't explain what the group is

(cherry picked from commit 817c02e8)
parent f1aab64a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -219,6 +219,8 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
   * The machine name of the entity type group.
   *
   * @var string
   *
   * @see self::getGroup()
   */
  protected $group;

+10 −0
Original line number Diff line number Diff line
@@ -669,6 +669,14 @@ public function setUriCallback($callback);
  /**
   * Gets the machine name of the entity type group.
   *
   * The entity type group is an annotation property of the entity type.
   *
   * Drupal core defines two entity type groups:
   *  - content: Entities which form the information on a site. Content entities
   *    are typically customized with fields.
   *  - config: Entities which define structural elements of a site, which are
   *    managed as part of the site's configuration.
   *
   * @return string
   */
  public function getGroup();
@@ -678,6 +686,8 @@ public function getGroup();
   *
   * @return string|\Drupal\Core\StringTranslation\TranslatableMarkup
   *   The group label.
   *
   * @see self::getGroup()
   */
  public function getGroupLabel();