You are here

public function BaseFieldDefinition::isInternal in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Field/BaseFieldDefinition.php \Drupal\Core\Field\BaseFieldDefinition::isInternal()

Determines whether the data value is internal.

This can be used in a scenario when it is not desirable to expose this data value to an external system.

Return value

bool Whether the data value is internal.

Overrides DataDefinition::isInternal

File

core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 878

Class

BaseFieldDefinition
A class for defining entity fields.

Namespace

Drupal\Core\Field

Code

public function isInternal() {

  // All fields are not internal unless explicitly set.
  return !empty($this->definition['internal']);
}