Unverified Commit c91f3114 authored by alexpott's avatar alexpott

Issue #3151800 by pameeela, ayushmishra206, paulocs, adityasingh, quietone,...

Issue #3151800 by pameeela, ayushmishra206, paulocs, adityasingh, quietone, Bobík, longwave, Chris Burge: Describe what setInternal does

(cherry picked from commit e3cedd07)
parent 0e0a8ba1
......@@ -377,6 +377,8 @@ public function isInternal() {
* Whether the data value should be internal.
* @return $this
* @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal
public function setInternal($internal) {
$this->definition['internal'] = $internal;
......@@ -224,6 +224,11 @@ public function addConstraint($constraint_name, $options = NULL);
* This can be used in a scenario when it is not desirable to expose this data
* value to an external system.
* The implications of this method are left to the discretion of the caller.
* For example, a module providing an HTTP API may not expose entities of
* this type, or a custom entity reference field settings form may
* deprioritize entities of this type in a select list.
* @return bool
* Whether the data value is internal.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment