You are here

public static function Instance::fromNames in Little helpers 7

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

File

src/Field/Instance.php, line 49

Class

Instance

Namespace

Drupal\little_helpers\Field

Code

public static function fromNames($fieldname, $entity_type, $bundle, $data = array()) {
  return self::fromField(Field::byName($fieldname), new Bundle($entity_type, $bundle), $data);
}