function MapDataDefinition::setMainPropertyName
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/MapDataDefinition.php \Drupal\Core\TypedData\MapDataDefinition::setMainPropertyName()
- 10 core/lib/Drupal/Core/TypedData/MapDataDefinition.php \Drupal\Core\TypedData\MapDataDefinition::setMainPropertyName()
- 11.x core/lib/Drupal/Core/TypedData/MapDataDefinition.php \Drupal\Core\TypedData\MapDataDefinition::setMainPropertyName()
Sets the main property name.
Parameters
string|null $name: The name of the main property, or NULL if there is none.
Return value
$this
File
-
core/
lib/ Drupal/ Core/ TypedData/ MapDataDefinition.php, line 82
Class
- MapDataDefinition
- A typed data definition class for defining maps.
Namespace
Drupal\Core\TypedDataCode
public function setMainPropertyName($name) {
$this->mainPropertyName = $name;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.