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; }
Please login to continue.