You are here

public function LayoutDefinition::setDeriver in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Layout/LayoutDefinition.php \Drupal\Core\Layout\LayoutDefinition::setDeriver()
  2. 9 core/lib/Drupal/Core/Layout/LayoutDefinition.php \Drupal\Core\Layout\LayoutDefinition::setDeriver()

Sets the deriver of this plugin definition.

Parameters

string|null $deriver: Either the name of a class that implements \Drupal\Component\Plugin\Derivative\DeriverInterface, or NULL.

Return value

$this

Overrides DerivablePluginDefinitionInterface::setDeriver

File

core/lib/Drupal/Core/Layout/LayoutDefinition.php, line 556

Class

LayoutDefinition
Provides an implementation of a layout definition and its metadata.

Namespace

Drupal\Core\Layout

Code

public function setDeriver($deriver) {
  $this->deriver = $deriver;
  return $this;
}