function EntityTypeInterface::set
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::set()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::set()
- 10 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\EntityCode
public function set($property, $value);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.