public function 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

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!MapDataDefinition.php/function/MapDataDefinition::setMainPropertyName/8.1.x