You are here

public static function Instance::load in Little helpers 7.2

Same name and namespace in other branches
  1. 7 src/Field/Instance.php \Drupal\little_helpers\Field\Instance::load()

File

src/Field/Instance.php, line 36

Class

Instance

Namespace

Drupal\little_helpers\Field

Code

public static function load($field_name, $entity_type, $bundle) {
  $data = \field_read_instance($entity_type, $field_name, $bundle);
  return new static($data);
}