Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::set()
  2. 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::set()

Sets a value to an arbitrary property.

Parameters

string $property: The property to use for the value.

mixed $value: The value to set.

Return value

$this

1 method overrides EntityTypeInterface::set()
EntityType::set in core/lib/Drupal/Core/Entity/EntityType.php
Sets a value to an arbitrary property.

File

core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 57

Class

EntityTypeInterface
Provides an interface for an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function set($property, $value);