Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityDisplayBase.php

function EntityDisplayBase::setTargetBundle

Overrides EntityDisplayInterface::setTargetBundle

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

public function setTargetBundle($bundle) {
    $this->set('bundle', $bundle);
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal