FieldableEntityInterface::hasField

public FieldableEntityInterface::hasField($field_name)

Determines whether the entity has a field with the given name.

Parameters

string $field_name: The field name.

Return value

bool TRUE if the entity has a field with the given name. FALSE otherwise.

File

core/lib/Drupal/Core/Entity/FieldableEntityInterface.php, line 105

Class

FieldableEntityInterface
Interface for entities having fields.

Namespace

Drupal\Core\Entity

Code

public function hasField($field_name);
doc_Drupal
2016-10-29 09:10:30
Comments
Leave a Comment

Please login to continue.