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

Breadcrumb

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

function EntityDisplayWithLayoutInterface::setLayoutId

Sets the layout plugin ID for this display.

Parameters

string|null $layout_id: Either a valid layout plugin ID, or NULL to remove the layout setting.

array $layout_settings: (optional) An array of settings for this layout.

Return value

$this

File

core/modules/field_layout/src/Display/EntityDisplayWithLayoutInterface.php, line 47

Class

EntityDisplayWithLayoutInterface
Provides a common interface for entity displays that have layout.

Namespace

Drupal\field_layout\Display

Code

public function setLayoutId($layout_id, array $layout_settings = []);

API Navigation

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