You are here

public function EntityDisplayBase::getTargetBundle in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getTargetBundle()
  2. 9 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getTargetBundle()

Gets the bundle to be displayed.

Return value

string The bundle to be displayed.

Overrides EntityDisplayInterface::getTargetBundle

4 calls to EntityDisplayBase::getTargetBundle()
LayoutBuilderEntityViewDisplay::label in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
@todo Move this upstream in https://www.drupal.org/node/2939931.
LayoutBuilderEntityViewDisplay::preSave in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Acts on an entity before the presave hook is invoked.
LayoutBuilderEntityViewDisplay::removeSectionField in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Removes a layout section field if it is no longer needed.
LayoutBuilderEntityViewDisplay::setComponent in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Sets the display options for a component.

File

core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 225

Class

EntityDisplayBase
Provides a common base class for entity view and form displays.

Namespace

Drupal\Core\Entity

Code

public function getTargetBundle() {
  return $this->bundle;
}