DataReferenceDefinition::setTargetDefinition

public DataReferenceDefinition::setTargetDefinition(DataDefinitionInterface $definition)

Sets the definition of the referenced data.

Parameters

\Drupal\Core\TypedData\DataDefinitionInterface $definition: The target definition to set.

Return value

$this

File

core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php, line 60

Class

DataReferenceDefinition
A typed data definition class for defining references.

Namespace

Drupal\Core\TypedData

Code

public function setTargetDefinition(DataDefinitionInterface $definition) {
  $this->targetDefinition = $definition;
  return $this;
}
doc_Drupal
2016-10-29 09:00:16
Comments
Leave a Comment

Please login to continue.