You are here

public function Field::delete in Little helpers 7

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

Delete an existing field.

See also

\field_delete_field()

File

src/Field/Field.php, line 88

Class

Field
OOP-wrapper for the data-structure used by field_*_field() functions.

Namespace

Drupal\little_helpers\Field

Code

public function delete() {
  field_delete_field($this->field_name);
}