By chx on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
To check whether a field has data in it, in D7:
$has_data = field_has_data($field);
In D8:
$has_data = $field->hasData();