public static function Instance::fromNames in Little helpers 7.2
Same name and namespace in other branches
- 7 src/Field/Instance.php \Drupal\little_helpers\Field\Instance::fromNames()
File
- src/
Field/ Instance.php, line 47
Class
Namespace
Drupal\little_helpers\FieldCode
public static function fromNames($fieldname, $entity_type, $bundle, $data = array()) {
return self::fromField(Field::byName($fieldname), new Bundle($entity_type, $bundle), $data);
}