MapDataDefinition::setMainPropertyName

public MapDataDefinition::setMainPropertyName($name)

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\TypedData

Code

1
2
3
4
public function setMainPropertyName($name) {
  $this->mainPropertyName = $name;
  return $this;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.