public static function Field::byName in Little helpers 7
Same name and namespace in other branches
- 7.2 src/Field/Field.php \Drupal\little_helpers\Field\Field::byName()
2 calls to Field::byName()
- Instance::fromNames in src/
Field/ Instance.php - Instance::__construct in src/
Field/ Instance.php
File
- src/
Field/ Field.php, line 33
Class
- Field
- OOP-wrapper for the data-structure used by field_*_field() functions.
Namespace
Drupal\little_helpers\FieldCode
public static function byName($name) {
if ($data = \field_read_field($name)) {
return new static($data);
}
return FALSE;
}