You are here

public function MapDataDefinition::setMainPropertyName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 87
Contains \Drupal\Core\TypedData\MapDataDefinition.

Class

MapDataDefinition
A typed data definition class for defining maps.

Namespace

Drupal\Core\TypedData

Code

public function setMainPropertyName($name) {
  $this->mainPropertyName = $name;
  return $this;
}