public property Field::$entity_types

The entity types on which the field is allowed to have instances.

If empty or not specified, the field is allowed to have instances in any entity type.

Type: array

File

drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php, line 130
Contains \Drupal\field\Plugin\Core\Entity\Field.

Class

Field
Defines the Field entity.

Namespace

Drupal\field\Plugin\Core\Entity

Code

public $entity_types = array();