Skip to content
Snippets Groups Projects
Unverified Commit c91f3114 authored by Alex Pott's avatar Alex Pott
Browse files

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
No related branches found
No related tags found
6 merge requests!1286issue #3240655 by elfakhar,!1285Issue #3240655 by elfakhar Aligne the active border,!541Issue #3123070: Fix 'PSR2.Classes.PropertyDeclaration.Underscore' coding standard,!463Resolve #3205025 "Class align center for media",!386Allow multiple vocabularies in the taxonomy filter,!308Issue #3118206: Remote media does not validate provider
...@@ -377,6 +377,8 @@ public function isInternal() { ...@@ -377,6 +377,8 @@ public function isInternal() {
* Whether the data value should be internal. * Whether the data value should be internal.
* *
* @return $this * @return $this
*
* @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal
*/ */
public function setInternal($internal) { public function setInternal($internal) {
$this->definition['internal'] = $internal; $this->definition['internal'] = $internal;
......
...@@ -224,6 +224,11 @@ public function addConstraint($constraint_name, $options = NULL); ...@@ -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 * This can be used in a scenario when it is not desirable to expose this data
* value to an external system. * 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 * @return bool
* Whether the data value is internal. * Whether the data value is internal.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment